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

Function is_ident

crates/css_lexer/src/syntax/identifier.rs:35–40  ·  view source on GitHub ↗
(c: char)

Source from the content-addressed store, hash-verified

33
34#[inline(always)]
35pub fn is_ident(c: char) -> bool {
36 if c.is_ascii() {
37 return is_ident_byte(c as u8);
38 }
39 is_non_ascii(c)
40}
41
42#[inline(always)]
43pub const fn is_ident_ascii_lower_or_digit(c: char) -> bool {

Callers 4

consume_hash_tokenMethod · 0.85
read_next_tokenMethod · 0.85
fmt_compacted_identMethod · 0.85

Calls 2

is_ident_byteFunction · 0.85
is_non_asciiFunction · 0.85

Tested by

no test coverage detected