commit | 87a448a1a40d3e3637a5f12c1eca08c855d206d9 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Thu Oct 01 21:06:22 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Oct 01 21:06:22 2020 +0000 |
tree | 158f9aed75a3b0ef2a34e968ada900d5e6bb625b | |
parent | f6b4c5fcc6ed4a113e89e709f1d86e6aa7d4cabf [diff] | |
parent | 5fd7263639731bd0691ff8cced943e3976f100ee [diff] |
Add post_update.sh am: 7afbb0e468 am: 2b72cb242b am: e274bc385b am: 01c1d88dfa am: 5fd7263639 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/1443548 Change-Id: I8911822dd9f73b06d0aa741709615f92210c2a40
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.