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

9
LINES

< > BotCompany Repo | #1015102 // escapeUpperCaseWithUnderscore

JavaX fragment (include)

sS escapeUpperCaseWithUnderscore(S s) {
  new StringBuilder buf;
  for i over s: {
    char c = s.charAt(i);
    if (isUpperCase(c)) buf.append('_');
    buf.append(c);
  }
  ret str(buf);
}

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: #1015102
Snippet name: escapeUpperCaseWithUnderscore
Eternal ID of this version: #1015102/1
Text MD5: bcdf0f1d1516c73ddb84d973e99541b1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-08 13:06:46
Source code size: 198 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 432 / 453
Referenced in: [show references]