1 | static PairS splitAtFirstColon(S s) { |
2 | int i = smartIndexOf(s, ':'); |
3 | ret pair(trimSubstring(s, 0, i), trimSubstring(s, i+1)); |
4 | } |
Began life as a copy of #1031500
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034275 |
Snippet name: | splitAtFirstColon - trims all |
Eternal ID of this version: | #1034275/1 |
Text MD5: | 9d368ac8b93afb96f950c7025ce05637 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-29 17:08:10 |
Source code size: | 133 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 120 / 140 |
Referenced in: | [show references] |