1 | sS dropLeadingCommas(S s) {
|
2 | int i = 0; |
3 | while (i < l(s)) {
|
4 | char c = s.charAt(i); |
5 | if (c != ',' && !isSpace(c)) break; |
6 | ++i; |
7 | } |
8 | ret substring(s, i); |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1023880 |
| Snippet name: | dropLeadingCommas (and trim left) |
| Eternal ID of this version: | #1023880/3 |
| Text MD5: | cb1b7a4dd9516762fee38d2a2092152a |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-07-11 14:06:28 |
| Source code size: | 173 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 452 / 475 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |