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

5
LINES

< > BotCompany Repo | #1005236 // unescapeMultichars - unescape extended Unicode characters [xchar xxxxxxxx]

JavaX fragment (include)

static S unescapeMultichars(S s) {
  ret regexReplace(s, "\\[xchar ([a-f0-9]+)\\]", func(Matcher m) {
    codePointToString(hexToInt(m.group(1)))
  });
}

Author comment

Began life as a copy of #1005235

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005236
Snippet name: unescapeMultichars - unescape extended Unicode characters [xchar xxxxxxxx]
Eternal ID of this version: #1005236/1
Text MD5: f2f70771f3facb0ae631e0b4c237aed5
Author: stefan
Category: javax / unicode
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-26 02:25:46
Source code size: 157 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 596 / 623
Referenced in: #1005237 - regexReplace - with function callback or string replacement
#1006654 - Standard functions list 2 (LIVE, continuation of #761)