Home
last modified time | relevance | path

Searched refs:byte_at (Results 1 – 4 of 4) sorted by relevance

/external/rust/crates/url/src/
Dslicing.rs112 debug_assert!(self.byte_at(self.scheme_end) == b':'); in index()
121 if self.has_authority() && self.byte_at(self.username_end) == b':' { in index()
130 if self.has_authority() && self.byte_at(self.username_end) == b':' { in index()
131 debug_assert!(self.byte_at(self.host_start - "@".len() as u32) == b'@'); in index()
145 debug_assert!(self.byte_at(self.host_end) == b':'); in index()
164 debug_assert!(self.byte_at(q) == b'?'); in index()
178 debug_assert!(self.byte_at(f) == b'#'); in index()
Dlib.rs600 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()
[all …]
Dpath_segments.rs50 debug_assert!(url.byte_at(url.path_start) == b'/'); in new()
54 || url.byte_at(url.path_start) == b'/' in new()
Dparser.rs770 debug_assert!(base_url.byte_at(scheme_end) == b':'); in parse_relative()