• Home
  • Raw
  • Download

Lines Matching refs:byte_at

600         assert!(matches!(self.byte_at(0), b'a'..=b'z' | b'A'..=b'Z'));  in check_invariants()
605 assert_eq!(self.byte_at(self.scheme_end), b':'); in check_invariants()
610 match self.byte_at(self.username_end) { in check_invariants()
613 assert_eq!(self.byte_at(self.host_start - 1), b'@'); in check_invariants()
638 assert_eq!(self.byte_at(self.host_end), b':'); in check_invariants()
647 || matches!(self.byte_at(self.path_start), b'/' | b'#' | b'?') in check_invariants()
660 assert_eq!(self.byte_at(start), b'?'); in check_invariants()
664 assert_eq!(self.byte_at(start), b'#'); in check_invariants()
812 debug_assert!(self.byte_at(self.scheme_end) == b':'); in has_authority()
906 && self.byte_at(self.username_end) == b':' in password()
908 debug_assert!(self.byte_at(self.host_start - 1) == b'@'); in password()
1275 debug_assert!(self.byte_at(query_start) == b'?'); in query()
1279 debug_assert!(self.byte_at(query_start) == b'?'); in query()
1348 debug_assert!(self.byte_at(start) == b'#'); in fragment()
1386 debug_assert!(self.byte_at(start) == b'#'); in set_fragment()
1401 debug_assert!(self.byte_at(start) == b'#'); in take_fragment()
1441 debug_assert!(self.byte_at(start) == b'?'); in set_query()
1500 debug_assert!(self.byte_at(start) == b'?'); in query_pairs_mut()
1826 debug_assert!(self.byte_at(self.scheme_end) == b':'); in set_host()
1827 debug_assert!(self.byte_at(self.path_start) == b'/'); in set_host()
1998 } else if self.byte_at(self.username_end) == b':' { in set_password()
2000 let has_username_or_password = self.byte_at(self.host_start - 1) == b'@'; in set_password()
2483 fn byte_at(&self, i: u32) -> u8 { in byte_at() method