Home
last modified time | relevance | path

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

/external/rust/crates/regex/src/
Dutf8.rs16 const TAG_CONT: u8 = 0b1000_0000; constant
63 if 0b11_000000 & b1 != TAG_CONT { in decode_utf8()
66 let cp = ((b0 & !TAG_TWO) as u32) << 6 | ((b1 & !TAG_CONT) as u32); in decode_utf8()
77 if 0b11_000000 & b1 != TAG_CONT { in decode_utf8()
80 if 0b11_000000 & b2 != TAG_CONT { in decode_utf8()
84 | ((b1 & !TAG_CONT) as u32) << 6 in decode_utf8()
85 | ((b2 & !TAG_CONT) as u32); in decode_utf8()
97 if 0b11_000000 & b1 != TAG_CONT { in decode_utf8()
100 if 0b11_000000 & b2 != TAG_CONT { in decode_utf8()
103 if 0b11_000000 & b3 != TAG_CONT { in decode_utf8()
[all …]
/external/rust/crates/serde/src/de/
Dutf8.rs3 const TAG_CONT: u8 = 0b1000_0000; constant
20 buf[3] = (code & 0x3F) as u8 | TAG_CONT; in encode()
24 buf[2] = (code >> 6 & 0x3F) as u8 | TAG_CONT; in encode()
25 buf[3] = (code & 0x3F) as u8 | TAG_CONT; in encode()
29 buf[1] = (code >> 12 & 0x3F) as u8 | TAG_CONT; in encode()
30 buf[2] = (code >> 6 & 0x3F) as u8 | TAG_CONT; in encode()
31 buf[3] = (code & 0x3F) as u8 | TAG_CONT; in encode()
/external/rust/crates/regex-syntax/src/
Dutf8.rs577 const TAG_CONT: u8 = 0b1000_0000; constant
583 dst[1] = (cp >> 6 & 0x3F) as u8 | TAG_CONT;
584 dst[2] = (cp & 0x3F) as u8 | TAG_CONT;