Function core::char::escape_unicode[src]
pub fn escape_unicode(c: char, f: |char|)
Returns the hexadecimal Unicode escape of a char
The rules are as follows:
- chars in [0,0xff] get 2-digit escapes:
\\xNN - chars in [0x100,0xffff] get 4-digit escapes:
\\uNNNN - chars above 0x10000 get 8-digit escapes:
\\UNNNNNNNN