Skip to main content

Module matching

Module matching 

Source
Expand description

Fused normalization pipeline for case-insensitive, confusable-aware matching.

Pipeline: NFKC → CaseFold → Confusable Skeleton (NFD → confusable_map → NFD).

Two strings that produce the same normalize_for_matching output are equivalent for matching purposes: they share the same compatibility decomposition, the same case folding, and the same confusable prototype.

Structs§

MatchingOptions
Options for the matching normalization pipeline.

Functions§

matches_normalized
Check whether two strings match after full normalization.
normalize_for_matching
Normalize input for matching: NFKC → CaseFold → Confusable Skeleton.
normalize_for_matching_utf16
Normalize input for matching and encode the result as UTF-16.