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.rs604 assert!(matches!(self.byte_at(0), b'a'..=b'z' | b'A'..=b'Z')); in check_invariants()
609 assert_eq!(self.byte_at(self.scheme_end), b':'); in check_invariants()
614 match self.byte_at(self.username_end) { in check_invariants()
617 assert_eq!(self.byte_at(self.host_start - 1), b'@'); in check_invariants()
642 assert_eq!(self.byte_at(self.host_end), b':'); in check_invariants()
651 || matches!(self.byte_at(self.path_start), b'/' | b'#' | b'?') in check_invariants()
664 assert_eq!(self.byte_at(start), b'?'); in check_invariants()
668 assert_eq!(self.byte_at(start), b'#'); in check_invariants()
816 debug_assert!(self.byte_at(self.scheme_end) == b':'); in has_authority()
910 && 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.rs758 debug_assert!(base_url.byte_at(scheme_end) == b':'); in parse_relative()