rustc_ap_rustc_lexer::unescape

Function unescape_char

Source
pub fn unescape_char(literal_text: &str) -> Result<char, (usize, EscapeError)>
Expand description

Takes a contents of a char literal (without quotes), and returns an unescaped char or an error