commit | f2ca3bbb0a9b5ff4b3fa182116bd40b3306f45a6 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Fri Oct 01 15:47:47 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Oct 01 15:47:47 2021 +0000 |
tree | 68bfefbf69a73875136251b57e507dbf034a9e4c | |
parent | f26657391d14e1887ed5dd09bfcd8ec7ade9bd46 [diff] | |
parent | 8922f8d0b334301f3c707bb53863c03d6ce0c773 [diff] |
Update TEST_MAPPING am: 8922f8d0b3 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/1843557 Change-Id: Ieb3298a58c87c24f99012fe2cd22d14bbee6826b
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.