1 | sS alphaBravoSpell(S s) { |
2 | new StringBuilder buf; |
3 | for (char c : characters(s)) { |
4 | char u = upper(c); |
5 | if (u >= 'A' && u <= 'Z') |
6 | buf.append(alphaBravoAlphabet().get(charDiff(u, 'A'))).append(' '); |
7 | else |
8 | buf.append(c); |
9 | } |
10 | ret str(buf); |
11 | } |
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: | 281 / 333 |
Version history: | 2 change(s) |
Referenced in: | [show references] |