Skip to main content

normalize

Function normalize 

Source
pub fn normalize(raw: &str) -> String
Expand description

Normalize raw code input into its canonical form: strip ASCII whitespace and -, uppercase ASCII letters, leave everything else untouched.

This never panics on arbitrary Unicode input. Non-ASCII characters are preserved here; validation (RFC-003 FR-2) is responsible for rejecting them.