• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

.github/workflows/23-Nov-2023-4036

benches/23-Nov-2023-128102

scripts/23-Nov-2023-561399

src/23-Nov-2023-26,81126,347

.cargo_vcs_info.jsonD23-Nov-202374 65

.gitignoreD23-Nov-202342 65

.travis.ymlD23-Nov-2023355 1817

Android.bpD23-Nov-20232.6 KiB9587

COPYRIGHTD23-Nov-2023321 87

Cargo.tomlD23-Nov-20231.3 KiB3330

Cargo.toml.origD23-Nov-2023863 3324

LICENSED23-Nov-202310.6 KiB202169

LICENSE-APACHED23-Nov-202310.6 KiB202169

LICENSE-MITD23-Nov-20231 KiB2622

METADATAD23-Nov-2023572 2019

MODULE_LICENSE_APACHE2D23-Nov-20230

OWNERSD23-Nov-202340 21

README.mdD23-Nov-20231.1 KiB4027

TEST_MAPPINGD23-Nov-2023279 1514

cargo2android.jsonD23-Nov-2023188 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