Function read_escape¶
Defined in File utf.h
Function Documentation¶
-
usize
read_escape
(string src, rune *dest)¶ Take an unescaped UTF-8 string, where the start of the string is pointing to the character right after the backslash. If this character is a
U
, then max eight (8) hexadecimal digits are expected to succeed it, otherwise au
is expected, where max four (4) hexdecimal digits are to succeed it. The resulting rune is stored indest
.- Return
How many bytes read as part of parsing (including
u
/U
). Returns0
if escape is invalid.- Parameters
[in] src
: String pointing to char after backslash.[out] dest
: Pointer to location where resulting rune is to be stored.