Skip to main content

try_parse_escape

Function try_parse_escape 

Source
pub fn try_parse_escape(text: &str) -> Option<(usize, char, EscapeType)>
Expand description

Try to parse a backslash escape sequence starting at the current position. Returns (total_len, escaped_char, escape_type) or None if not an escape.