D | string.rs | 16 use nom::character::streaming::{char, multispace1}; 30 fn parse_unicode<'a, E>(input: &'a str) -> IResult<&'a str, char, E> in parse_unicode() argument 36 let parse_hex = take_while_m_n(1, 6, |c: char| c.is_ascii_hexdigit()); in parse_unicode() 41 char('u'), in parse_unicode() 45 delimited(char('{'), parse_hex, char('}')), in parse_unicode() 57 map_opt(parse_u32, |value| std::char::from_u32(value))(input) in parse_unicode() 61 fn parse_escaped_char<'a, E>(input: &'a str) -> IResult<&'a str, char, E> in parse_escaped_char() argument 66 char('\\'), in parse_escaped_char() 75 value('\n', char('n')), in parse_escaped_char() 76 value('\r', char('r')), in parse_escaped_char() [all …]
|