Libraryless. Click here for Pure Java version (2423L/15K).
sS dropSuffixOrNull(S suffix, S s) { ret s != null && s.endsWith(suffix) ? s.substring(0, l(s)-l(suffix)) : null; }
Began life as a copy of #1020746
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1029097 |
| Snippet name: | dropSuffixOrNull |
| Eternal ID of this version: | #1029097/3 |
| Text MD5: | 55a0ccc49c0f342e906b6ca844355315 |
| Transpilation MD5: | 792d17ba9427a856cca1afbb67e6e12b |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-07-19 14:54:19 |
| Source code size: | 119 bytes / 3 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 524 / 696 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |