gecko-dev/third_party/rust/unicode-normalization
Manish Goregaokar cd6c97ea60 Bug 1336607 - Update vendored Rust sources to include geckolib dependencies; r=froydnj
MozReview-Commit-ID: BOgu41N351y

--HG--
rename : third_party/rust/serde/.cargo-checksum.json => third_party/rust/serde-0.8.23/.cargo-checksum.json
rename : third_party/rust/serde/Cargo.toml => third_party/rust/serde-0.8.23/Cargo.toml
rename : third_party/rust/serde/src/bytes.rs => third_party/rust/serde-0.8.23/src/bytes.rs
rename : third_party/rust/serde/src/de/impls.rs => third_party/rust/serde-0.8.23/src/de/impls.rs
rename : third_party/rust/serde/src/de/mod.rs => third_party/rust/serde-0.8.23/src/de/mod.rs
rename : third_party/rust/serde/src/de/value.rs => third_party/rust/serde-0.8.23/src/de/value.rs
rename : third_party/rust/serde/src/error.rs => third_party/rust/serde-0.8.23/src/error.rs
rename : third_party/rust/serde/src/lib.rs => third_party/rust/serde-0.8.23/src/lib.rs
rename : third_party/rust/serde/src/macros.rs => third_party/rust/serde-0.8.23/src/macros.rs
rename : third_party/rust/serde/src/ser/impls.rs => third_party/rust/serde-0.8.23/src/ser/impls.rs
rename : third_party/rust/serde/src/ser/mod.rs => third_party/rust/serde-0.8.23/src/ser/mod.rs
extra : rebase_source : d015147c7a6c01b34c5a1abf035d71f8ecfe0c12
2017-02-10 12:19:18 -08:00
..
scripts Bug 1151899 - Vendor rust-url-capi deps; r=valentin,ted 2016-10-28 16:34:19 -07:00
src Bug 1336607 - Update vendored Rust sources to include geckolib dependencies; r=froydnj 2017-02-10 12:19:18 -08:00
.cargo-checksum.json Bug 1336607 - Update vendored Rust sources to include geckolib dependencies; r=froydnj 2017-02-10 12:19:18 -08:00
.cargo-ok Bug 1151899 - Vendor rust-url-capi deps; r=valentin,ted 2016-10-28 16:34:19 -07:00
.gitignore Bug 1336607 - Update vendored Rust sources to include geckolib dependencies; r=froydnj 2017-02-10 12:19:18 -08:00
.travis.yml Bug 1151899 - Vendor rust-url-capi deps; r=valentin,ted 2016-10-28 16:34:19 -07:00
COPYRIGHT Bug 1151899 - Vendor rust-url-capi deps; r=valentin,ted 2016-10-28 16:34:19 -07:00
Cargo.toml Bug 1336607 - Update vendored Rust sources to include geckolib dependencies; r=froydnj 2017-02-10 12:19:18 -08:00
LICENSE-APACHE Bug 1151899 - Vendor rust-url-capi deps; r=valentin,ted 2016-10-28 16:34:19 -07:00
LICENSE-MIT Bug 1151899 - Vendor rust-url-capi deps; r=valentin,ted 2016-10-28 16:34:19 -07:00
README.md Bug 1336607 - Update vendored Rust sources to include geckolib dependencies; r=froydnj 2017-02-10 12:19:18 -08:00

README.md

Unicode character composition and decomposition utilities as described in Unicode Standard Annex #15.

Build Status

Documentation

extern crate unicode_normalization;

use unicode_normalization::char::compose;
use unicode_normalization::UnicodeNormalization;

fn main() {
    assert_eq!(compose('A','\u{30a}'), Some('Å'));
    
    let s = "ÅΩ";
    let c = s.nfc().collect::<String>();
    assert_eq!(c, "ÅΩ");
}

crates.io

You can use this package in your project by adding the following to your Cargo.toml:

[dependencies]
unicode-normalization = "0.1.3"