Skip to main content

eq_exact

Function eq_exact 

pub(crate) fn eq_exact(input: &str, canonical: &str) -> bool
Expand description

Compares a caller’s spelling against a canonical code exactly, folding nothing. For a vocabulary whose case is load-bearing: "GBp" is a minor unit and "GBP" is a major currency, so folding them would silently return pence for pounds.