1 | static L<S> splitAtSlash_keepAll(S s) { |
2 | int i = 0; |
3 | new L<S> l; |
4 | while true { |
5 | int j = smartIndexOf(s, '/', i); |
6 | l.add(substring(s, i, j)); |
7 | if (j == l(s)) break; |
8 | i = j+1; |
9 | } |
10 | ret l; |
11 | } |
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: | 412 / 453 |
Referenced in: | [show references] |