MCPcopy Create free account
hub / github.com/dprint/jsonc-parser / current_char

Method current_char

src/scanner.rs:421–428  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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() {

Callers 1

move_next_charMethod · 0.45

Calls 2

nextMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected