tag | d7b23e13ee0b12a5541f7bad2eb14fc1d9701cd4 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu Apr 15 12:12:03 2021 -0700 |
object | 2036c45ba997d08ba23a59e103851961c8dbd2f4 |
Platform Tools Release 31.0.2 (7242960)
commit | 2036c45ba997d08ba23a59e103851961c8dbd2f4 | [log] [tgz] |
---|---|---|
author | android-build-prod (mdb) <android-build-team-robot@google.com> | Thu Mar 04 00:39:51 2021 +0000 |
committer | android-build-prod (mdb) <android-build-team-robot@google.com> | Thu Mar 04 00:39:51 2021 +0000 |
tree | 2989b0f2513ec077e19233acc697804504d18b8e | |
parent | 6d0a4fc0e69c98181299d8c6a6f8032f049d95fc [diff] | |
parent | 9d5bcb8632909e81e872f816cb324569e5c8e1d4 [diff] |
Snap for 7183507 from 9d5bcb8632909e81e872f816cb324569e5c8e1d4 to sdk-release Change-Id: Id45da7af2c9659d19081b6270aeb8f9dce8742cb
Unicode character composition and decomposition utilities as described in Unicode Standard Annex #15.
This crate requires Rust 1.36+.
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, "ÅΩ"); }
You can use this package in your project by adding the following to your Cargo.toml
:
[dependencies] unicode-normalization = "0.1.16"
no_std
+ alloc
supportThis 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
.