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

13
LINES

< > BotCompany Repo | #1024069 // discord_regionalIndicatorFont

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (1717L/11K).

sS discord_regionalIndicatorFont(S s) {
  new StringBuilder buf;
  for (char c : characters(s)) {
    char u = lower(c);
    if (u >= 'a' && u <= 'z')
      buf.append(" :regional_indicator_").append(u).append(": ");
    else if (u == ' ' || u == '\t')
      buf.append(" :small_blue_diamond: ");
    else
      buf.append(c);
  }
  ret simpleSpaces_noTok(str(buf));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1024069
Snippet name: discord_regionalIndicatorFont
Eternal ID of this version: #1024069/5
Text MD5: 34a17a2e9496f3228dfd782fc85d17ba
Transpilation MD5: 098de723f7089ea5de22aada7671f61d
Author: stefan
Category: javax / discord
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-19 23:22:04
Source code size: 380 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 139 / 221
Version history: 4 change(s)
Referenced in: [show references]