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

11
LINES

< > BotCompany Repo | #1011740 // splitAtSlash_keepAll

JavaX fragment (include)

static L<S> splitAtSlash_keepAll(S s) {
  int i = 0;
  new L<S> l;
  while true {
    int j = smartIndexOf(s, '/', i);
    l.add(substring(s, i, j));
    if (j == l(s)) break;
    i = j+1;
  }
  ret l;
}

Author comment

Began life as a copy of #1005984

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1011740
Snippet name: splitAtSlash_keepAll
Eternal ID of this version: #1011740/1
Text MD5: 73278d80482d0d635f84d3ab40680a66
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-04 21:05:58
Source code size: 213 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 339 / 382
Referenced in: [show references]