Module escape

Module escape 

Source

Functionsยง

parse_next_escaped
Parse one escape sequence at the start of data (which must begin with \).
parse_next_utf8_or_escaped
Parse the first codepoint from utf8, transparently decoding an escape sequence when the input starts with \.
print_as_escaped
Render a single codepoint as a printable, escaped string.
print_byte_as_escaped
Render a single raw byte as a printable escaped string (the EscapeString(uint8_t) overload).
print_str_as_escaped
Render an entire byte string as a printable escaped string (the EscapeString(std::string) overload). Invalid UTF-8 bytes are preserved and escaped individually.
unescape_string
Decode an escaped grammar-literal byte string into its UTF-8 form.