Home
last modified time | relevance | path

Searched refs:username_end (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/url/src/
Dslicing.rs113 debug_assert!(self.scheme_end + ":".len() as u32 == self.username_end); in index()
118 Position::AfterUsername => self.username_end as usize, in index()
121 if self.has_authority() && self.byte_at(self.username_end) == b':' { in index()
122 self.username_end as usize + ":".len() in index()
124 debug_assert!(self.username_end == self.host_start); in index()
125 self.username_end as usize in index()
130 if self.has_authority() && self.byte_at(self.username_end) == b':' { in index()
134 debug_assert!(self.username_end == self.host_start); in index()
Dlib.rs180 username_end: u32, // Before ':' (if a password is given) or '@' (if not) field
609 if self.username_end != self.serialization.len() as u32 { in check_invariants()
610 match self.byte_at(self.username_end) { in check_invariants()
612 assert!(self.host_start >= self.username_end + 2); in check_invariants()
615 b'@' => assert!(self.host_start == self.username_end + 1), in check_invariants()
616 _ => assert_eq!(self.username_end, self.scheme_end + 3), in check_invariants()
619 assert!(self.host_start >= self.username_end); in check_invariants()
651 assert_eq!(self.username_end, self.scheme_end + 1); in check_invariants()
673 assert_eq!(self.username_end, other.username_end); in check_invariants()
870 if self.has_authority() && self.username_end > self.scheme_end + scheme_separator_len { in username()
[all …]
Dparser.rs483 let username_end = path_start; in parse_non_special() localVariable
498 username_end, in parse_non_special()
553 username_end: host_start, in parse_file()
604 username_end: host_start, in parse_file()
664 base_url.username_end, in parse_file()
684 username_end: path_start, in parse_file()
707 username_end: path_start, in parse_file()
790 base_url.username_end, in parse_relative()
828 base_url.username_end, in parse_relative()
850 let (username_end, remaining) = self.parse_userinfo(input, scheme_type)?; in after_double_slash()
[all …]