MCPcopy Create free account
hub / github.com/csskit/csskit / peek3

Method peek3

crates/css_lexer/src/private.rs:84–90  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

82 /// Peek the next three chars
83 #[inline(always)]
84 fn peek3(&self) -> (char, char, char) {
85 let c0 = self.peek_char_at(0);
86 let off1 = c0.len_utf8();
87 let c1 = self.peek_char_at(off1);
88 let c2 = self.peek_char_at(off1 + c1.len_utf8());
89 (c0, c1, c2)
90 }
91
92 /// Advance by one byte (for ASCII). Returns the byte.
93 #[inline(always)]

Callers 2

consume_numeric_tokenMethod · 0.80
read_next_tokenMethod · 0.80

Calls 1

peek_char_atMethod · 0.80

Tested by

no test coverage detected