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

4
LINES

< > BotCompany Repo | #1031500 // splitAtFirstEquals - trims all

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

Libraryless. Click here for Pure Java version (2842L/17K).

1  
static PairS splitAtFirstEquals(S s) {
2  
  int i = smartIndexOf(s, '=');
3  
  ret pair(trimSubstring(s, 0, i), trimSubstring(s, i+1));
4  
}

Author comment

Began life as a copy of #1012569

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031500
Snippet name: splitAtFirstEquals - trims all
Eternal ID of this version: #1031500/1
Text MD5: a6e04a5952c41ea99fc0bb395eacbd50
Transpilation MD5: a2020f7c9e37284140b068a16c763c2f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-16 17:52:32
Source code size: 134 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 195 / 262
Referenced in: [show references]