commit | 8783035a4fb50b82cddc3084d243f4961d372767 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <qwandor@google.com> | Tue Nov 14 13:19:31 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Nov 14 13:19:31 2023 +0000 |
tree | 481daaf95f5d40b05519180575b30a7c148e8a70 | |
parent | c8b30084cb41ddd65dfcc62ad2aeaefcb6ddd55f [diff] | |
parent | 57f7c032aa71c8522405a534e5e13615184313e6 [diff] |
Migrate to cargo_embargo. am: 57f7c032aa Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/2828135 Change-Id: I18c6713eb0b54895d936e7d7e38c759af5be37a0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Determine if a char
is a valid identifier for a parser and/or lexer according to Unicode Standard Annex #31 rules.
extern crate unicode_xid; use unicode_xid::UnicodeXID; fn main() { let ch = 'a'; println!("Is {} a valid start of an identifier? {}", ch, UnicodeXID::is_xid_start(ch)); }
unicode-xid supports a no_std
feature. This eliminates dependence on std, and instead uses equivalent functions from core.
const
tables with static
tables.