Decode a non-ASCII char starting at `idx`. The byte at `idx` is >= 128.
(&self, idx: usize)
| 66 | |
| 67 | /// Decode a non-ASCII char starting at `idx`. The byte at `idx` is >= 128. |
| 68 | fn decode_non_ascii_at(&self, idx: usize) -> char { |
| 69 | // SAFETY: self.bytes is valid UTF-8 |
| 70 | let remaining = unsafe { std::str::from_utf8_unchecked(&self.bytes[idx..]) }; |
| 71 | remaining.chars().next().unwrap_or(EOF) |
| 72 | } |
| 73 | |
| 74 | /// Peek the next two chars |
| 75 | #[inline(always)] |