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

11
LINES

< > BotCompany Repo | #1018518 // alphaBravoSpell

JavaX fragment (include)

sS alphaBravoSpell(S s) {
  new StringBuilder buf;
  for (char c : characters(s)) {
    char u = upper(c);
    if (u >= 'A' && u <= 'Z')
      buf.append(alphaBravoAlphabet().get(charDiff(u, 'A'))).append(' ');
    else
      buf.append(c);
  }
  ret str(buf);
}

Author comment

Began life as a copy of #1018517

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1018518
Snippet name: alphaBravoSpell
Eternal ID of this version: #1018518/3
Text MD5: 161464ade601e75ff50b299d416bfeb8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-02 23:46:49
Source code size: 272 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 280 / 331
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)