Lines Matching defs:chars

22             off: self.off + _front.chars().count() as u32,
57 fn chars(&self) -> Chars<'a> {
58 self.rest.chars()
113 let ch = s.chars().next().unwrap();
158 match input.chars().next() {
323 let mut chars = input.char_indices();
325 match chars.next() {
331 for (i, ch) in chars {
385 let mut chars = input.char_indices();
387 while let Some((i, ch)) = chars.next() {
393 '\r' => match chars.next() {
397 '\\' => match chars.next() {
399 backslash_x_char(&mut chars)?;
403 backslash_u(&mut chars)?;
408 chars = input.char_indices();
549 let mut chars = input.char_indices();
551 while let Some((i, ch)) = chars.next() {
557 '\r' => match chars.next() {
561 '\\' => match chars.next() {
563 backslash_x_nonzero(&mut chars)?;
567 if backslash_u(&mut chars)? == '\0' {
574 chars = input.char_indices();
600 if !input.chars().as_str().is_char_boundary(offset) {
609 let mut chars = input.char_indices();
610 let ok = match chars.next().map(|(_, ch)| ch) {
611 Some('\\') => match chars.next().map(|(_, ch)| ch) {
612 Some('x') => backslash_x_char(&mut chars).is_ok(),
613 Some('u') => backslash_u(&mut chars).is_ok(),
622 let (idx, _) = chars.next().ok_or(Reject)?;
628 ($chars:ident @ $pat:pat) => {
629 match $chars.next() {
639 fn backslash_x_char<I>(chars: &mut I) -> Result<(), Reject>
643 next_ch!(chars @ '0'..='7');
644 next_ch!(chars @ '0'..='9' | 'a'..='f' | 'A'..='F');
648 fn backslash_x_byte<I>(chars: &mut I) -> Result<(), Reject>
652 next_ch!(chars @ b'0'..=b'9' | b'a'..=b'f' | b'A'..=b'F');
653 next_ch!(chars @ b'0'..=b'9' | b'a'..=b'f' | b'A'..=b'F');
657 fn backslash_x_nonzero<I>(chars: &mut I) -> Result<(), Reject>
661 let first = next_ch!(chars @ '0'..='9' | 'a'..='f' | 'A'..='F');
662 let second = next_ch!(chars @ '0'..='9' | 'a'..='f' | 'A'..='F');
670 fn backslash_u<I>(chars: &mut I) -> Result<char, Reject>
674 next_ch!(chars @ '{');
677 for (_, ch) in chars {
717 if let Some(ch) = rest.chars().next() {
726 let mut chars = input.chars().peekable();
727 match chars.next() {
735 while let Some(&ch) = chars.peek() {
738 chars.next();
745 chars.next();
746 if chars
756 chars.next();
777 while let Some(&ch) = chars.peek() {
786 chars.next();
791 chars.next();
796 chars.next();
812 if let Some(ch) = rest.chars().next() {
898 let mut chars = input.chars();
899 let first = match chars.next() {
985 let chars = input.char_indices();
987 for (i, ch) in chars {