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

Method would_start_unicode_range

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

Source from the content-addressed store, hash-verified

781 }
782
783 fn would_start_unicode_range(&self) -> bool {
784 // Caller confirmed current byte is U or u. Check next two.
785 let b1 = self.peek_byte(1);
786 if b1 != b'+' {
787 return false;
788 }
789 let b2 = self.peek_byte(2);
790 b2 == b'?' || (b2 as char).is_ascii_hexdigit()
791 }
792
793 fn consume_unicode_range_token(&mut self) -> Token {
794 // Step 1: Consume U/u and +

Callers 1

read_next_tokenMethod · 0.80

Calls 1

peek_byteMethod · 0.80

Tested by

no test coverage detected