1 | static S dropIncluding(S s, S x) {
|
2 | if (s == null) null; |
3 | int i = s.indexOf(x); |
4 | if (i < 0) ret ""; |
5 | ret substring(s, i+l(x)); |
6 | } |
Began life as a copy of #1004390
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1005739 |
| Snippet name: | dropIncluding - drop beginning of string until (an including) a certain substring (or return "" if not found) |
| Eternal ID of this version: | #1005739/1 |
| Text MD5: | 6aa0160598495203e5fbff4b06779e08 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-12-05 13:06:25 |
| Source code size: | 137 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 727 / 764 |
| Referenced in: | [show references] |