1 | static S dropPrefixSuffix_orNull(S prefix, S suffix, S s) { |
2 | if (!startsWith(s, prefix)) null; |
3 | s = dropPrefix(prefix, s); |
4 | if (!endsWith(s, suffix)) null; |
5 | ret dropSuffix(suffix, s); |
6 | } |
Began life as a copy of #1009250
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: | #1009252 |
Snippet name: | dropPrefixSuffix_orNull |
Eternal ID of this version: | #1009252/1 |
Text MD5: | b0e3e363dd4a1c150b4f94f9f2e0d427 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-07-19 20:10:46 |
Source code size: | 194 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 467 / 503 |
Referenced in: | [show references] |