Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1023880 // dropLeadingCommas (and trim left)

JavaX fragment (include)

sS dropLeadingCommas(S s) {
  int i = 0;
  while (i < l(s)) {
    char c = s.charAt(i);
    if (c != ',' && !isSpace(c)) break;
    ++i;
  }
  ret substring(s, i);
}

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: 167 / 198
Version history: 2 change(s)
Referenced in: [show references]