• Home
Name Date Size #Lines LOC

..--

.github/workflows/03-May-2024-4036

benches/03-May-2024-128102

scripts/03-May-2024-561399

src/03-May-2024-26,81126,347

.cargo_vcs_info.jsonD03-May-202474 65

.gitignoreD03-May-202442 65

.travis.ymlD03-May-2024355 1817

Android.bpD03-May-20242.6 KiB9587

COPYRIGHTD03-May-2024321 87

Cargo.tomlD03-May-20241.3 KiB3330

Cargo.toml.origD03-May-2024863 3324

LICENSED03-May-202410.6 KiB202169

LICENSE-APACHED03-May-202410.6 KiB202169

LICENSE-MITD03-May-20241 KiB2622

METADATAD03-May-2024572 2019

MODULE_LICENSE_APACHE2D03-May-20240

OWNERSD03-May-202440 21

README.mdD03-May-20241.1 KiB4027

TEST_MAPPINGD03-May-2024279 1514

cargo2android.jsonD03-May-2024188 1111

README.md

1# unicode-normalization
2
3[![Build Status](https://travis-ci.org/unicode-rs/unicode-normalization.svg)](https://travis-ci.org/unicode-rs/unicode-normalization)
4[![Docs](https://docs.rs/unicode-normalization/badge.svg)](https://docs.rs/unicode-normalization/)
5
6Unicode character composition and decomposition utilities
7as described in
8[Unicode Standard Annex #15](http://www.unicode.org/reports/tr15/).
9
10This crate requires Rust 1.36+.
11
12```rust
13extern crate unicode_normalization;
14
15use unicode_normalization::char::compose;
16use unicode_normalization::UnicodeNormalization;
17
18fn main() {
19    assert_eq!(compose('A','\u{30a}'), Some('Å'));
20
21    let s = "ÅΩ";
22    let c = s.nfc().collect::<String>();
23    assert_eq!(c, "ÅΩ");
24}
25```
26
27## crates.io
28
29You can use this package in your project by adding the following
30to your `Cargo.toml`:
31
32```toml
33[dependencies]
34unicode-normalization = "0.1.16"
35```
36
37## `no_std` + `alloc` support
38
39This crate is completely `no_std` + `alloc` compatible. This can be enabled by disabling the `std` feature, i.e. specifying `default-features = false` for this crate on your `Cargo.toml`.
40