Libraryless. Click here for Pure Java version (71L/1K).
static S dropAfterFirstColon(S s) { if (s == null) null; int i = s.indexOf(':'); ret i < 0 ? s : rtrim(substring(s, 0, i)); }
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: | 452 / 510 |
Version history: | 1 change(s) |
Referenced in: | [show references] |