Skip to main content

BOM_CHAR

Constant BOM_CHAR 

Source
pub const BOM_CHAR: char = '\u{FEFF}';
Expand description

The same BOM as a char.

Use this for char-typed predicates like s.contains(BOM_CHAR) or match c { BOM_CHAR => ... } instead of open-coding '\u{FEFF}' — that scatters the BOM concept across every detection site and re-creates the contract drift this module exists to prevent.