Lines Matching +full:0 +full:x9d
25 // Firstly, we make REJECT have state ID 0, since it makes the state table
26 // itself a little easier to read and is consistent with the notion that 0
43 const REJECT: usize = 0;
49 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
50 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
51 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
52 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
63 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
64 12, 0, 24, 36, 60, 96, 84, 0, 0, 0, 48, 72,
65 0, 12, 0, 0, 0, 0, 0, 12, 0, 12, 0, 0,
66 0, 24, 0, 0, 0, 0, 0, 24, 0, 24, 0, 0,
67 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0,
68 0, 24, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0,
69 0, 0, 0, 0, 0, 0, 0, 36, 0, 36, 0, 0,
70 0, 36, 0, 0, 0, 0, 0, 36, 0, 36, 0, 0,
71 0, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
124 if size == 0 { in next()
136 if size == 0 { in next_back()
171 CharIndices { bs: bs, forward_index: 0, reverse_index: bs.len() } in new()
206 if size == 0 { in next()
219 if size == 0 { in next_back()
352 (0, Some(0)) in size_hint()
478 let mut i = 0; in validate()
486 && b <= 0x7F in validate()
487 && slice.get(i + 1).map_or(false, |&b| b <= 0x7F) in validate()
516 while backup > 0 && !is_leading_or_invalid_utf8_byte(slice[backup]) { in validate()
533 let mut valid_up_to = 0; in validate()
575 /// the number of bytes consumed is always between 0 and 3, inclusive, where
576 /// 0 is only returned when `slice` is empty.
603 /// let mut bytes = B(b"\xE2\x98\x83\xFF\xF0\x9D\x9E\x83\xE2\x98\x61");
615 match slice.get(0) { in decode()
616 None => return (None, 0), in decode()
617 Some(&b) if b <= 0x7F => return (Some(b as char), 1), in decode()
621 let (mut state, mut cp, mut i) = (ACCEPT, 0, 0); in decode()
649 /// always between 0 and 3, inclusive, where 0 is only returned when `slice` is
677 /// let mut bytes = B(b"\xE2\x98\x83\xFF\xF0\x9D\x9E\x83\xE2\x98\x61");
702 /// the number of bytes consumed is always between 0 and 3, inclusive, where
703 /// 0 is only returned when `slice` is empty.
730 /// let mut bytes = B(b"\xE2\x98\x83\xFF\xF0\x9D\x9E\x83\xE2\x98\x61");
746 return (None, 0); in decode_last()
773 /// always between 0 and 3, inclusive, where 0 is only returned when `slice` is
801 /// let mut bytes = B(b"\xE2\x98\x83\xFF\xF0\x9D\x9E\x83\xE2\x98\x61");
824 *cp = (0xFF >> class) & (b as u32); in decode_step()
826 *cp = (b as u32 & 0b111111) | (*cp << 6); in decode_step()
854 (b & 0b1100_0000) != 0b1000_0000 in is_leading_or_invalid_utf8_byte()
875 for i in 0..(0x10FFFF + 1) { in validate_all_codepoints()
880 let mut buf = [0; 4]; in validate_all_codepoints()
890 assert_eq!(Ok(()), utf8::validate(b"a\xF0\x9D\x9C\xB7a")); in validate_multiple_codepoints()
891 assert_eq!(Ok(()), utf8::validate(b"\xE2\x98\x83\xF0\x9D\x9C\xB7",)); in validate_multiple_codepoints()
894 utf8::validate(b"a\xE2\x98\x83a\xF0\x9D\x9C\xB7a",) in validate_multiple_codepoints()
905 assert_eq!(Err(utf8e2(0, 1)), utf8::validate(b"\xFF")); in validate_errors()
913 assert_eq!(Err(utf8e2(4, 1)), utf8::validate(b"\xF0\x9D\x9D\xB1\xFF")); in validate_errors()
916 assert_eq!(Err(utf8e2(0, 1)), utf8::validate(b"\xCE\xF0")); in validate_errors()
918 assert_eq!(Err(utf8e2(0, 2)), utf8::validate(b"\xE2\x98\xF0")); in validate_errors()
920 assert_eq!(Err(utf8e2(0, 3)), utf8::validate(b"\xF0\x9D\x9D\xF0")); in validate_errors()
925 assert_eq!(Err(utf8e2(0, 1)), utf8::validate(b"\xF0\x82\x82\xAC")); in validate_errors()
934 assert_eq!(Err(utf8e2(0, 1)), utf8::validate(b"\xED\xA0\x80")); in validate_errors()
942 assert_eq!(Err(utf8e2(0, 1)), utf8::validate(b"\xCEa")); in validate_errors()
949 assert_eq!(Err(utf8e2(0, 2)), utf8::validate(b"\xE2\x98a")); in validate_errors()
956 assert_eq!(Err(utf8e2(0, 3)), utf8::validate(b"\xF0\x9D\x9Ca")); in validate_errors()
957 assert_eq!(Err(utf8e2(1, 3)), utf8::validate(b"a\xF0\x9D\x9Ca")); in validate_errors()
960 utf8::validate(b"\xF0\x9D\x9C\xB1\xF0\x9D\x9C\xE2\x98\x83",) in validate_errors()
968 assert_eq!(Err(utf8e(0)), utf8::validate(b"\xCE")); in validate_errors()
972 assert_eq!(Err(utf8e(0)), utf8::validate(b"\xE2\x98")); in validate_errors()
976 assert_eq!(Err(utf8e(0)), utf8::validate(b"\xF0\x9D\x9C")); in validate_errors()
977 assert_eq!(Err(utf8e(1)), utf8::validate(b"a\xF0\x9D\x9C")); in validate_errors()
980 utf8::validate(b"\xF0\x9D\x9C\xB1\xF0\x9D\x9C",) in validate_errors()
1014 assert_eq!(0, size); in decode_invalid()
1028 let (ch, size) = utf8::decode(b"\xF0\x9D\x9D"); in decode_invalid()
1032 let (ch, size) = utf8::decode(b"\xF0\x9D\x9D\xF0"); in decode_invalid()
1052 let (ch, size) = utf8::decode(b"\xF0\x9D\x9Ca"); in decode_invalid()
1061 assert_eq!(0, size); in decode_lossy()
1075 let (ch, size) = utf8::decode_lossy(b"\xF0\x9D\x9D\xF0"); in decode_lossy()
1095 let (ch, size) = utf8::decode_lossy(b"\xF0\x9D\x9Ca"); in decode_lossy()
1123 assert_eq!(0, size); in decode_last_invalid()
1145 let (ch, size) = utf8::decode_last(b"\xF0\x9D\x9D\xF0"); in decode_last_invalid()
1149 let (ch, size) = utf8::decode_last(b"\xF0\x9D\x9D"); in decode_last_invalid()
1177 let (ch, size) = utf8::decode_last(b"a\xF0\x9D\x9C"); in decode_last_invalid()
1186 assert_eq!(0, size); in decode_last_lossy()
1208 let (ch, size) = utf8::decode_last_lossy(b"\xF0\x9D\x9D\xF0"); in decode_last_lossy()
1212 let (ch, size) = utf8::decode_last_lossy(b"\xF0\x9D\x9D"); in decode_last_lossy()
1240 let (ch, size) = utf8::decode_last_lossy(b"a\xF0\x9D\x9C"); in decode_last_lossy()