Crate rustc_literal_escaper

Source
Expand description

Utilities for validating (raw) string, char, and byte literals and turning escape sequences into the values they represent.

Enums§

EscapeError
Errors and warnings that can occur during string, char, and byte unescaping.
MixedUnit
Enum representing either a char or a byte
Mode
Enum of the different kinds of literal

Functions§

check_for_errors
Check a literal only for errors
check_raw_byte_str
Check a raw byte string literal for validity
check_raw_c_str
Check a raw C string literal for validity
check_raw_str
Check a raw string literal for validity
unescape_byte
Unescape a byte literal
unescape_byte_str
Unescape a byte string literal
unescape_c_str
Unescape a C string literal
unescape_char
Unescape a char literal
unescape_str
Unescape a string literal