Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > TinyBrain | #1007368 - dropAfterFirstColon

JavaX fragment (include)

static S dropAfterFirstColon(S s) {
  if (s == null) null;
  int i = s.indexOf(':');
  ret i < 0 ? s : rtrim(substring(s, 0, i));
}

Author comment

Began life as a copy of #1007058

download  show line numbers  debug dex   

Travelled to 1 computer(s): tvejysmllsmz

No comments. add comment

Snippet ID: #1007368
Snippet name: dropAfterFirstColon
Eternal ID of this version: #1007368/1
Text MD5: a9f6d456e5ada0c5a19cf9df589cd302
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-16 21:24:54
Source code size: 135 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 23 / 3
Referenced in: [show]