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

Function is_url_ident

crates/css_lexer/src/syntax/mod.rs:44–47  ·  view source on GitHub ↗
(str: &str)

Source from the content-addressed store, hash-verified

42
43#[inline(always)]
44pub const fn is_url_ident(str: &str) -> bool {
45 let str = str.as_bytes();
46 str.len() == 3 && matches!(str[0], b'u' | b'U') && matches!(str[1], b'r' | b'R') && matches!(str[2], b'l' | b'L')
47}
48
49#[inline(always)]
50pub fn is_non_printable(c: char) -> bool {

Callers 1

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected