mirror of
https://github.com/openharmony/third_party_rust_unicode-normalization.git
synced 2026-07-19 23:13:33 -04:00
e0d33a866133eeda8b19dd22fd5c3fe8ea45ec4d
This commit imports update to regexes in `load_properties()`, d25c39f86568a147f9b7080c25711fb1f98f056a in rust-lang/regex Does not result in any changes to tables.rs, but could if published tables are updated in the future.
Unicode character composition and decomposition utilities as described in Unicode Standard Annex #15.
extern crate unicode_normalization;
use unicode_normalization::char::compose;
use unicode_normalization::str::UnicodeNormalization;
fn main() {
assert_eq!(compose('A','\u{30a}'), Some('Å'));
let s = "ÅΩ";
let c = UnicodeNormalization::nfc_chars(s).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.0.3"
Description
Languages
Rust
96.5%
Python
3.5%