Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
.github/workflows/ | 23-Nov-2023 | - | 40 | 36 | ||
benches/ | 23-Nov-2023 | - | 128 | 102 | ||
scripts/ | 23-Nov-2023 | - | 561 | 399 | ||
src/ | 23-Nov-2023 | - | 26,811 | 26,347 | ||
.cargo_vcs_info.json | D | 23-Nov-2023 | 74 | 6 | 5 | |
.gitignore | D | 23-Nov-2023 | 42 | 6 | 5 | |
.travis.yml | D | 23-Nov-2023 | 355 | 18 | 17 | |
Android.bp | D | 23-Nov-2023 | 2.6 KiB | 95 | 87 | |
COPYRIGHT | D | 23-Nov-2023 | 321 | 8 | 7 | |
Cargo.toml | D | 23-Nov-2023 | 1.3 KiB | 33 | 30 | |
Cargo.toml.orig | D | 23-Nov-2023 | 863 | 33 | 24 | |
LICENSE | D | 23-Nov-2023 | 10.6 KiB | 202 | 169 | |
LICENSE-APACHE | D | 23-Nov-2023 | 10.6 KiB | 202 | 169 | |
LICENSE-MIT | D | 23-Nov-2023 | 1 KiB | 26 | 22 | |
METADATA | D | 23-Nov-2023 | 572 | 20 | 19 | |
MODULE_LICENSE_APACHE2 | D | 23-Nov-2023 | 0 | |||
OWNERS | D | 23-Nov-2023 | 40 | 2 | 1 | |
README.md | D | 23-Nov-2023 | 1.1 KiB | 40 | 27 | |
TEST_MAPPING | D | 23-Nov-2023 | 279 | 15 | 14 | |
cargo2android.json | D | 23-Nov-2023 | 188 | 11 | 11 |
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