1 | static S dropSuffixICOneOf(S s, S... suffixes) {
|
2 | if (s == null) null; |
3 | for (S suffix : suffixes) |
4 | if (ewic(s, suffix)) |
5 | ret s.substring(0, l(s)-l(suffix)); |
6 | ret s; |
7 | } |
Began life as a copy of #1010559
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: | #1015986 |
| Snippet name: | dropSuffixICOneOf |
| Eternal ID of this version: | #1015986/1 |
| Text MD5: | b6c891241dd249226ddead4e8b00f5f8 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-06-02 19:22:38 |
| Source code size: | 185 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 684 / 673 |
| Referenced in: | [show references] |