Lines Matching refs:char
15 //! `char`, literal bytes with the high byte set are converted into the raw
19 //! validity and mapped to `char`. Character sequences are not supported. Width
39 use std::char;
45 use nom::character::complete::{char, one_of};
57 /// A character that can be represented as a `char`
58 Char(char),
66 0..=0x7f => CChar::Char(i as u8 as char),
151 fn escape2char(c: char) -> CChar {
169 0..=0x7f => CChar::Char(i as u8 as char),
178 .and_then(char::from_u32)
184 char('\\'),
189 map_opt(preceded(char('x'), many1(hexadecimal)), |v| {
193 preceded(char('u'), many_m_n(4, 4, hexadecimal)),
197 preceded(char('U'), many_m_n(8, 8, hexadecimal)),
210 terminated(opt(c_width_prefix), char('\'')),
215 char('\''),
221 alt((preceded(c_width_prefix, char('"')), char('"'))),
233 char('"'),
271 map_opt(preceded(char('0'), many1(complete(octal))), |v| {