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

6
LINES

< > BotCompany Repo | #1002682 // dropUntilSpace - drop characters up and including to the first space(s)

JavaX fragment (include)

static S dropUntilSpace(S s) {
  if (s == null) ret "";
  int i = s.indexOf(' ')+1;
  while (i < l(s) && s.charAt(i) == ' ') ++i;
  ret s.substring(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: #1002682
Snippet name: dropUntilSpace - drop characters up and including to the first space(s)
Eternal ID of this version: #1002682/1
Text MD5: e8fca1bd852fdc844720e2f88b649294
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-02-13 03:52:28
Source code size: 158 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 732 / 679
Referenced in: #1004315 - afterSpace - synonym of dropUntilSpace
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1007222 - dropUntilColon - drop characters up and including to the first colon. Also trims
#1016283 - afterLastSpace
#1018516 - afterTab - drop characters up and including to the first tab(s)
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)