commit | 34cf0fdd1b552ef3e12676fb997f498a12c79a06 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Thu Nov 05 15:21:57 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Nov 05 15:21:57 2020 +0000 |
tree | a1f15ec85f8d55864064abaaf43744a9291398f1 | |
parent | 21de967f653b26160e897cf3b2b743f65b517608 [diff] | |
parent | 4f9fa870987525300e9630dffdf925b2ab44fb46 [diff] |
TEST_MAPPING: test dependers of this crate am: 8bef548e6c am: 79cd83fdaa am: 2b158c09c5 am: 4f9fa87098 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/1486247 Change-Id: I5378e2c0b51612af0ce9dd64d2350121e34f956f
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.