MCPcopy Create free account
hub / github.com/LaBatata101/sith-language-server / next_char

Method next_char

crates/sith_python_parser/src/string.rs:99–103  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

97
98 #[inline]
99 fn next_char(&mut self) -> Option<char> {
100 self.source[self.cursor..].chars().next().inspect(|c| {
101 self.cursor += c.len_utf8();
102 })
103 }
104
105 #[inline]
106 fn peek_byte(&self) -> Option<u8> {

Callers 3

parse_unicode_literalMethod · 0.80
parse_unicode_nameMethod · 0.80
parse_escaped_charMethod · 0.80

Calls 2

charsMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected