tag | 4f293398cf8b785875c698f015d09190ba0d8010 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Fri Feb 03 17:02:20 2023 -0800 |
object | 1337eb3d8ceaa93ec743ddf75b0abb84de9b1642 |
Platform Tools Release 34.0.0 (9560563)
commit | 1337eb3d8ceaa93ec743ddf75b0abb84de9b1642 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Feb 01 11:03:13 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Feb 01 11:03:13 2023 +0000 |
tree | e3db980716ae532860e923ef13940d7be4493e4f | |
parent | cd647f11df71fc7391c018146fe1ec4d78692a68 [diff] | |
parent | b9cc5e3e19f6580fcf06fece8aadf0431a99986a [diff] |
Snap for 9550355 from b9cc5e3e19f6580fcf06fece8aadf0431a99986a to sdk-release Change-Id: I0668c7523da22fa7b3ce6a37fe9420899140d624
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.22"
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
.