Lines Matching defs:bytes
112 let mut bytes = source.bytes(); in next_char_from() localVariable
221 let mut bytes: &[u8] = "correct".as_bytes(); // correct ASCII in test_next_char_from() localVariable
224 let mut bytes: &[u8] = b"\xEF\xBB\xBF\xE2\x80\xA2!"; // BOM in test_next_char_from() localVariable
227 let mut bytes: &[u8] = b"\xEF\xBB\xBFx123"; // BOM in test_next_char_from() localVariable
230 let mut bytes: &[u8] = b"\xEF\xBB\xBF"; // Nothing after BOM in test_next_char_from() localVariable
233 let mut bytes: &[u8] = b"\xEF\xBB"; // Nothing after BO in test_next_char_from() localVariable
236 let mut bytes: &[u8] = b"\xEF\xBB\x42"; // Nothing after BO in test_next_char_from() localVariable
239 let mut bytes: &[u8] = b"\xFE\xFF\x00\x42"; // UTF-16 in test_next_char_from() localVariable
242 let mut bytes: &[u8] = b"\xFF\xFE\x42\x00"; // UTF-16 in test_next_char_from() localVariable
245 let mut bytes: &[u8] = b"\xFF\xFE"; // UTF-16 in test_next_char_from() localVariable
248 let mut bytes: &[u8] = b"\xFF\xFE\x00"; // UTF-16 in test_next_char_from() localVariable
251 let mut bytes: &[u8] = "правильно".as_bytes(); // correct BMP in test_next_char_from() localVariable
254 let mut bytes: &[u8] = "правильно".as_bytes(); in test_next_char_from() localVariable
257 let mut bytes: &[u8] = "правильно".as_bytes(); in test_next_char_from() localVariable
260 let mut bytes: &[u8] = b"\xD8\xD8\x80"; in test_next_char_from() localVariable
263 let mut bytes: &[u8] = b"\x00\x42"; in test_next_char_from() localVariable
266 let mut bytes: &[u8] = b"\x42\x00"; in test_next_char_from() localVariable
269 let mut bytes: &[u8] = b"\x00"; in test_next_char_from() localVariable
272 let mut bytes: &[u8] = "".as_bytes(); // correct non-BMP in test_next_char_from() localVariable
275 let mut bytes: &[u8] = b""; // empty in test_next_char_from() localVariable
278 let mut bytes: &[u8] = b"\xf0\x9f\x98"; // incomplete code point in test_next_char_from() localVariable
284 let mut bytes: &[u8] = b"\xff\x9f\x98\x32"; // invalid code point in test_next_char_from() localVariable