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

5
LINES

< > BotCompany Repo | #1012500 // dropAfterSubString_orNull

JavaX fragment (include)

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

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: 399 / 425
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1024627 - dropAfterSubstring - return whole string if not found