1 | static S dropUntilDash(S s) { |
2 | if (s == null) ret ""; |
3 | int i = s.indexOf('-'); |
4 | ret trim(i >= 0 ? substring(s, i+1) : s); |
5 | } |
Began life as a copy of #1007222
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: | #1008367 |
Snippet name: | dropUntilDash - drop characters up and including to the first dash ("-"). Also trims |
Eternal ID of this version: | #1008367/1 |
Text MD5: | bbbf5fca8fb63210a2f81467f77e8487 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-09 22:16:52 |
Source code size: | 130 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 446 / 492 |
Referenced in: | [show references] |