Searched refs:expect_encoded (Results 1 – 5 of 5) sorted by relevance
19 wtf8::encode_wide(string).map(|x| expect_encoded!(x)) in encode_wide_unchecked()24 let code_point = expect_encoded!(code_points in decode_code_point()
195 expect_encoded!(raw::validate_bytes(string)); in assert_from_raw_bytes()269 expect_encoded!(raw::validate_bytes(string)); in from_raw_bytes_unchecked()498 let start = expect_encoded!(self.0[..index] in index_boundary_error()721 expect_encoded!(imp::os_str_from_bytes(&self.0)) in to_os_str()1061 expect_encoded!(raw::validate_bytes(&string)); in assert_from_raw_vec()1136 expect_encoded!(raw::validate_bytes(&string)); in from_raw_vec_unchecked()1200 expect_encoded!(imp::os_string_from_vec(self.0)) in into_os_string()
223 macro_rules! expect_encoded { macro432 expect_encoded!(from_raw_bytes(string)) in assert_from_raw_bytes()567 expect_encoded!(imp::os_string_from_vec(string)) in assert_from_raw_vec()
22 let string = expect_encoded!(str::from_utf8(string)); in decode_code_point()
13 let index = expect_encoded!(index.checked_sub(1)); in ends_with()