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