commit | 821d8c6ee13a8767e5f216418d7a7bd5780a1f6e | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Mon Oct 12 09:45:01 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Oct 12 09:45:01 2020 +0000 |
tree | 51b8bced8d57c3adc3b768873171b769efad6286 | |
parent | 49b5d35485f3feaeabfb72430d32beba37e69eeb [diff] | |
parent | 7ee0d916263e10a1678d028fc4ba4c6cfdb77bb1 [diff] |
Copy description from Cargo.toml to METADATA am: 7ee0d91626 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/1456860 Change-Id: Idb86844e61853e85517912e9d4e00044ed16d856
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.