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

5
LINES

< > BotCompany Repo | #1007368 // dropAfterFirstColon - drops the colon too

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (71L/1K).

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

Author comment

Began life as a copy of #1007058

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1007368
Snippet name: dropAfterFirstColon - drops the colon too
Eternal ID of this version: #1007368/2
Text MD5: a9f6d456e5ada0c5a19cf9df589cd302
Transpilation MD5: c6d9bb371fae07990d07d5592486146f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-27 06:52:59
Source code size: 135 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 454 / 513
Version history: 1 change(s)
Referenced in: [show references]