unic_normal

Trait StrNormalForm

Source
pub trait StrNormalForm<I: Iterator<Item = char>> {
    // Required methods
    fn nfd(self) -> Decompositions<I> ;
    fn nfkd(self) -> Decompositions<I> ;
    fn nfc(self) -> Recompositions<I> ;
    fn nfkc(self) -> Recompositions<I> ;
}
Expand description

Methods for iterating over strings while applying Unicode normalizations as described in Unicode Standard Annex #15.

Required Methods§

Source

fn nfd(self) -> Decompositions<I>

Returns an iterator over the string in Unicode Normalization Form D (canonical decomposition).

Source

fn nfkd(self) -> Decompositions<I>

Returns an iterator over the string in Unicode Normalization Form KD (compatibility decomposition).

Source

fn nfc(self) -> Recompositions<I>

An Iterator over the string in Unicode Normalization Form C (canonical decomposition followed by canonical composition).

Source

fn nfkc(self) -> Recompositions<I>

An Iterator over the string in Unicode Normalization Form KC (compatibility decomposition followed by canonical composition).

Implementations on Foreign Types§

Source§

impl<'a> StrNormalForm<Chars<'a>> for &'a str

Implementors§

Source§

impl<I: Iterator<Item = char>> StrNormalForm<I> for I