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).

1  
sS discord_regionalIndicatorFont(S s) {
2  
  new StringBuilder buf;
3  
  for (char c : characters(s)) {
4  
    char u = lower(c);
5  
    if (u >= 'a' && u <= 'z')
6  
      buf.append(" :regional_indicator_").append(u).append(": ");
7  
    else if (u == ' ' || u == '\t')
8  
      buf.append(" :small_blue_diamond: ");
9  
    else
10  
      buf.append(c);
11  
  }
12  
  ret simpleSpaces_noTok(str(buf));
13  
}

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: 202 / 310
Version history: 4 change(s)
Referenced in: [show references]