Lines Matching refs:char
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()
77 value('\t', char('t')), in parse_escaped_char()
78 value('\u{08}', char('b')), in parse_escaped_char()
79 value('\u{0C}', char('f')), in parse_escaped_char()
80 value('\\', char('\\')), in parse_escaped_char()
81 value('/', char('/')), in parse_escaped_char()
82 value('"', char('"')), in parse_escaped_char()
92 preceded(char('\\'), multispace1)(input) in parse_escaped_whitespace()
114 EscapedChar(char),
162 delimited(char('"'), build_string, char('"'))(input)