Home
last modified time | relevance | path

Searched refs:decode_utf8 (Results 1 – 9 of 9) sorted by relevance

/external/rust/crates/regex/src/
Dutf8.rs51 pub fn decode_utf8(src: &[u8]) -> Option<(char, usize)> { in decode_utf8() function
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(&[0xC3]), None); // 2 bytes in reject_invalid()
230 assert_eq!(decode_utf8(&[0xEF, 0xBF]), None); // 3 bytes in reject_invalid()
[all …]
Dinput.rs11 use utf8::{decode_last_utf8, decode_utf8};
164 let c = decode_utf8(&self[i..]).map(|(c, _)| c).into(); in at()
263 decode_utf8(&self[at.pos()..]).map(|(c, _)| c).into() in next_char()
/external/rust/crates/protobuf/src/text_format/lexer/
Dstr_lit.rs47 pub fn decode_utf8(&self) -> StrLitDecodeResult<String> { in decode_utf8() method
75 fn decode_utf8() { in decode_utf8() function
81 .decode_utf8() in decode_utf8()
/external/rust/crates/bstr/src/
Dlib.rs405 decode as decode_utf8, decode_last as decode_last_utf8, CharIndices,
/external/pcre/dist2/
Dperltest.sh385 $xx = Encode::decode_utf8($xx) if $utf8;
/external/rust/crates/percent-encoding/
Dlib.rs405 pub fn decode_utf8(self) -> Result<Cow<'a, str>, str::Utf8Error> { in decode_utf8() method
/external/python/cpython3/Parser/pegen/
Dparse_string.c45 decode_utf8(const char **sPtr, const char *end) in decode_utf8() function
98 w = decode_utf8(&s, end); in decode_unicode_with_escapes()
/external/python/cpython2/Python/
Dast.c3370 decode_utf8(struct compiling *c, const char **sPtr, const char *end, char* encoding) in decode_utf8() function
3423 w = decode_utf8(c, &s, end, "utf-32-be"); in decode_unicode()
/external/python/cpython3/Python/
Dast.c4549 decode_utf8(struct compiling *c, const char **sPtr, const char *end) in decode_utf8() function
4619 w = decode_utf8(c, &s, end); in decode_unicode_with_escapes()