(&self)
| 419 | } |
| 420 | |
| 421 | fn current_char(&self) -> Option<char> { |
| 422 | let &b = self.bytes.get(self.byte_index)?; |
| 423 | if b < 0x80 { |
| 424 | Some(b as char) |
| 425 | } else { |
| 426 | self.file_text[self.byte_index..].chars().next() |
| 427 | } |
| 428 | } |
| 429 | |
| 430 | fn move_next_char(&mut self) -> Option<char> { |
| 431 | if self.byte_index >= self.bytes.len() { |
no test coverage detected