unicode_normalization_alignments

Function is_nfc_quick

Source
pub fn is_nfc_quick<I: Iterator<Item = char>>(s: I) -> IsNormalized
Expand description

Quickly check if a string is in NFC, potentially returning IsNormalized::Maybe if further checks are necessary. In this case a check like s.chars().nfc().eq(s.chars()) should suffice.