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

5
LINES

< > BotCompany Repo | #1012500 // dropAfterSubString_orNull

JavaX fragment (include)

1  
static S dropAfterSubString_orNull(S s, S b) {
2  
  int i = indexOf(s, b);
3  
  if (i < 0) null;
4  
  ret substring(s, 0, i);
5  
}

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: #1012500
Snippet name: dropAfterSubString_orNull
Eternal ID of this version: #1012500/2
Text MD5: 2156aa599c7344aafd818393a17c63d9
Author: stefan
Category: javax / strings
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-04 01:01:06
Source code size: 122 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 400 / 427
Version history: 1 change(s)
Referenced in: [show references]