Libraryless. Click here for Pure Java version (2545L/16K).
sS addPrefixCI(S prefix, S s) { ret swic(s, prefix) ? s : prefix + s; } static IF1<S> addPrefixCI(S prefix) { ret s -> addPrefixCI(prefix, s); }
Began life as a copy of #1002935
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030207 |
| Snippet name: | addPrefixCI - add prefix if not there [case-insensitive] |
| Eternal ID of this version: | #1030207/2 |
| Text MD5: | 34b51c4e356fad6696d30782198c1cdd |
| Transpilation MD5: | ab96c507f62907695b78d4d9db4da6d3 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-11-16 15:31:30 |
| Source code size: | 155 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 427 / 559 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |