commit | fab630ee16beb6e632d2242ed7fa5a80bcd31776 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Mon Aug 30 21:08:06 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Aug 30 21:08:06 2021 +0000 |
tree | 49e20d866472411ea1017139f993fbded1ae03b6 | |
parent | 578af379e3169677af23fa4da70eac3ed861c0ba [diff] | |
parent | f26657391d14e1887ed5dd09bfcd8ec7ade9bd46 [diff] |
Update TEST_MAPPING am: fd59300003 am: f26657391d Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/1813576 Change-Id: I7a262bb4637b1114001a0061b9a27d74c1383650
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.