Guest User

Untitled

a guest
Jul 13th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. # Unicode escaping.
  2. let re_unicode = re(R_UNICODE)
  3. for match in toSeq(dest.findAll(re_unicode)):
  4. var temporal: int
  5. if parseHex(match[2..5], temporal) > 0:
  6. let u = toUTF8(TRune(temporal))
  7. dest = dest.replace(match, u)
Advertisement
Add Comment
Please, Sign In to add comment