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

4
LINES

< > BotCompany Repo | #1034275 // splitAtFirstColon - trims all

JavaX fragment (include)

static PairS splitAtFirstColon(S s) {
  int i = smartIndexOf(s, ':');
  ret pair(trimSubstring(s, 0, i), trimSubstring(s, i+1));
}

Author comment

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: 119 / 139
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)