Searched refs:decode_utf8 (Results 1 - 3 of 3) sorted by relevance
/third_party/rust/crates/regex/src/ |
H A D | utf8.rs | 51 pub fn decode_utf8(src: &[u8]) -> Option<(char, usize)> { in decode_utf8() functions 119 /// Like `decode_utf8`, but decodes the last UTF-8 sequence in `src` instead 135 match decode_utf8(&src[start..]) { in decode_last_utf8() 153 decode_last_utf8, decode_utf8, TAG_CONT, TAG_FOUR, TAG_THREE, TAG_TWO, 161 let (got_cp, got_len) = decode_utf8(&tmp[..encoded_len]).unwrap(); in prop_roundtrip() 195 let (got_cp, _) = decode_utf8(&tmp[..n]).unwrap(); in prop_decode_matches_std() 223 assert_eq!(decode_utf8(&[0xFF]), None); in reject_invalid() 225 assert_eq!(decode_utf8(&[0xED, 0xA0, 0x81]), None); in reject_invalid() 227 assert_eq!(decode_utf8(&[0xD4, 0xC2]), None); in reject_invalid() 229 assert_eq!(decode_utf8( in reject_invalid() [all...] |
H A D | input.rs | 9 use crate::utf8::{decode_last_utf8, decode_utf8}; 162 let c = decode_utf8(&self[i..]).map(|(c, _)| c).into(); in at() 261 decode_utf8(&self[at.pos()..]).map(|(c, _)| c).into() in next_char()
|
/third_party/python/Parser/ |
H A D | string_parser.c | 51 decode_utf8(const char **sPtr, const char *end) in decode_utf8() function 104 w = decode_utf8(&s, end); in decode_unicode_with_escapes()
|
Completed in 4 milliseconds