Crate unic_normal

Source
Expand description

§UNIC — Unicode Normalization Forms

A component of unic: Unicode and Internationalization Crates for Rust.

This UNIC component implements algorithms from Unicode Standard Annex #15 - Unicode Normalization Forms.

extern crate unic_normal;

use unic_normal::StrNormalForm;

fn main() {
    let s = "ÅΩ";
    let c = s.nfc().collect::<String>();
    assert_eq!(c, "ÅΩ");
}

Structs§

  • External iterator for a string decomposition’s characters.
  • External iterator for a string recomposition’s characters.

Constants§

Traits§