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

4
LINES

< > BotCompany Repo | #1029676 // emojisToUnicode - replace e.g. ":wave:" with unicode emoji

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

Libraryless. Click here for Pure Java version (4563L/31K).

sS emojisToUnicode(S s) {
  ret regexReplace(s, ":(\\w+):", matcher ->
    lookupOrKeep(emojiShortNameMap(), matcher.group()));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1029676
Snippet name: emojisToUnicode - replace e.g. ":wave:" with unicode emoji
Eternal ID of this version: #1029676/1
Text MD5: 3d21791dece808b105d5cdf0da0f013d
Transpilation MD5: 86f06b9518c41f6a4d0c356b951ecb25
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-07 12:22:58
Source code size: 132 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 194 / 256
Referenced in: [show references]