Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Unicode escaping.
- let re_unicode = re(R_UNICODE)
- for match in toSeq(dest.findAll(re_unicode)):
- var temporal: int
- if parseHex(match[2..5], temporal) > 0:
- let u = toUTF8(TRune(temporal))
- dest = dest.replace(match, u)
Advertisement
Add Comment
Please, Sign In to add comment