astral-tl 0.7.11

Fast HTML parser written in pure Rust
Documentation
1
2
3
4
5
6
7
8
use crate::util;

/// Fallback for searching for the first non-identifier
#[inline(never)]
#[cold]
pub fn search_non_ident(haystack: &[u8]) -> Option<usize> {
    haystack.iter().position(|&c| !util::is_ident(c))
}