(&self)
| 272 | |
| 273 | #[inline] |
| 274 | pub fn next_is_stop(&self) -> bool { |
| 275 | for c in &self.buffer[self.buffer_index..BUFFER_LEN] { |
| 276 | if c != self.skip { |
| 277 | return c == self.stop; |
| 278 | } |
| 279 | } |
| 280 | |
| 281 | let mut iter = self.cursor_iter.clone(); |
| 282 | loop { |
| 283 | let Some(cursor) = iter.next() else { |
| 284 | return false; |
| 285 | }; |
| 286 | if cursor != self.skip { |
| 287 | return cursor == self.stop; |
| 288 | } |
| 289 | } |
| 290 | } |
| 291 | |
| 292 | #[inline] |
| 293 | pub(crate) fn peek_n_with_skip(&self, n: u8, skip: KindSet) -> Cursor { |