rustc_lexer::unescape

Function unescape_non_raw_common

Source
fn unescape_non_raw_common<F, T: From<char> + From<u8>>(
    src: &str,
    mode: Mode,
    callback: &mut F,
)
Expand description

Takes a contents of a string literal (without quotes) and produces a sequence of escaped characters or errors.