pub fn normalize_reference(raw_label: &str) -> StringExpand description
Section 4.7 label matching: case-insensitive under Unicode case folding, with internal whitespace collapsed.
Lowercase then uppercase is the approximation of full case folding the
reference implementation uses; it makes ẞ/ß and Σ/ς agree. Rust’s
to_lowercase and to_uppercase are the full mappings, the same ones
JavaScript’s toLowerCase and toUpperCase apply.