1 | static S dropAfterComma(S s) {
|
2 | if (s == null) null; |
3 | int i = s.indexOf(',');
|
4 | ret i < 0 ? s : rtrim(substring(s, 0, i)); |
5 | } |
Began life as a copy of #1007368
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: | #1010800 |
| Snippet name: | dropAfterComma - also drops the comma |
| Eternal ID of this version: | #1010800/1 |
| Text MD5: | 0de597b18dc45d5fe69f1956ea2af7f5 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-10-03 18:49:29 |
| Source code size: | 130 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 645 / 746 |
| Referenced in: | [show references] |