use super::super::lazy::CharClass;
pub const TAG_MATCH: u32 = 1 << 30;
pub const TAG_DEAD: u32 = 1 << 31;
pub const STATE_MASK: u32 = !(TAG_MATCH | TAG_DEAD);
pub const DEAD_STATE: u32 = TAG_DEAD | STATE_MASK;
#[derive(Clone, Copy, Default)]
pub struct StateMetadata {
pub prev_class: CharClass,
pub needs_word_boundary: bool,
pub needs_not_word_boundary: bool,
pub needs_end_of_text: bool,
pub needs_end_of_line: bool,
}
#[inline(always)]
pub fn is_word_byte(b: u8) -> bool {
b.is_ascii_alphanumeric() || b == b'_'
}