Skip to main content

BOM_LEN

Constant BOM_LEN 

Source
pub const BOM_LEN: usize = _; // 3usize
Expand description

Byte length of BOM in UTF-8 (always 3).

Used by parse() to shift spans back into the original-source coordinate frame after running the inner parser on the BOM-stripped view. Inlined as a const so the compiler can constant- fold the shift arithmetic.