Home
last modified time | relevance | path

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

12345678910>>...47

/dports/mail/p5-MIME-EcoEncode/MIME-EcoEncode-0.95/t/
H A DEcoEncode.t53 is(mime_eco(encode('7bit-jis', decode_utf8($str)), 'ISO-2022-JP'),
63 is(mime_eco(encode('7bit-jis', decode_utf8($str)), 'ISO-2022-JP'),
71 is(mime_eco(encode('7bit-jis', decode_utf8($str)), 'ISO-2022-JP',
81 is(mime_eco(encode('7bit-jis', decode_utf8($str)), 'ISO-2022-JP'),
93 is(mime_eco(encode('7bit-jis', decode_utf8($str)), 'ISO-2022-JP'),
116 is(mime_eco(encode('7bit-jis', decode_utf8($str)), 'ISO-2022-JP'),
235 $encoded = mime_eco(encode('big5', decode_utf8($str)), 'Big5');
273 $str_j = encode('7bit-jis', decode_utf8($str));
286 $str_j = encode('7bit-jis', decode_utf8($str));
298 $str_j = encode('7bit-jis', decode_utf8($str));
[all …]
H A DFold.t81 $in = encode('7bit-jis', decode_utf8($in_utf8));
82 $out = encode('7bit-jis', decode_utf8($out_utf8));
100 $in = encode('7bit-jis', decode_utf8($in_utf8));
101 $out = encode('7bit-jis', decode_utf8($out_utf8));
118 $in = encode('cp932', decode_utf8($in_utf8));
119 $out = encode('cp932', decode_utf8($out_utf8));
136 $in = encode('cp932', decode_utf8($in_utf8));
137 $out = encode('cp932', decode_utf8($out_utf8));
/dports/devel/stylua/StyLua-0.11.0/cargo-crates/regex-1.5.4/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/multimedia/librav1e/rav1e-0.5.1/cargo-crates/regex-1.5.4/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/devel/sentry-cli/sentry-cli-1.71.0/cargo-crates/regex-1.5.4/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/multimedia/rav1e/rav1e-0.5.1/cargo-crates/regex-1.5.4/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/devel/cargo-c/cargo-c-0.9.6+cargo-0.58/cargo-crates/regex-1.5.4/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/misc/broot/broot-1.7.0/cargo-crates/regex-1.5.4/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/multimedia/librespot/librespot-0.1.3/cargo-crates/regex-1.3.9/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/regex-1.5.4/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/games/jaggedalliance2/ja2-stracciatella-0.18.0/cargo-crates/regex-1.3.9/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/devel/sccache/sccache-0.2.15/cargo-crates/regex-1.4.2/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/devel/rust-analyzer/rust-analyzer-2021-12-20/cargo-crates/regex-1.5.4/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/devel/rust-bindgen/bindgen-0.59.2/cargo-crates/regex-1.4.6/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/devel/bingrep/bingrep-0.8.5/cargo-crates/regex-1.4.3/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/security/vaultwarden/vaultwarden-1.23.1/cargo-crates/regex-1.5.4/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/www/castor/castor-0.8.16/cargo-crates/regex-1.3.9/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/games/genact/genact-0.10.0/cargo-crates/regex-1.3.9/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/textproc/sonic/sonic-1.3.0/cargo-crates/regex-1.3.9/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/lang/gleam/gleam-0.18.2/cargo-crates/regex-1.5.4/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/databases/ods2sql/ods2sql-aca63183274038487cecb6be17d7f65e92178b8c/cargo-crates/regex-1.4.1/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/accessibility/wl-gammarelay-rs/wl-gammarelay-rs-0.2.1/cargo-crates/regex-1.5.4/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/x11-wm/leftwm/leftwm-0.2.11/cargo-crates/regex-1.5.4/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/databases/redisjson/RedisJSON-2.0.6/cargo-crates/regex-1.5.4/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]
/dports/devel/grex/grex-1.3.0/cargo-crates/regex-1.5.4/src/
H A 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()
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()
231 assert_eq!(decode_utf8(&[0xF4, 0x8F, 0xBF]), None); // 4 bytes in reject_invalid()
233 assert_eq!(decode_utf8(&[TAG_TWO, TAG_CONT | b'a']), None); in reject_invalid()
[all …]

12345678910>>...47