commit | 4a101f1575e2ffe83cbb1f11371bd9a301e4cf70 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Fri Mar 20 23:08:13 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Mar 20 23:08:13 2020 +0000 |
tree | 19be29ddc439228c7153d0c1dba5e437723a3370 | |
parent | a665ab8f120fc5449b2772d062afb77db3bed704 [diff] | |
parent | 82cebe8078cdf38fe8cf320c7ccca9fe63026ebe [diff] |
Fill back missing NOTICE,METADATA,*LICENSE* files am: 0159bcef0a am: 82cebe8078 Change-Id: Ifbbd60d82a1506fbb9577c753dc2250cbb32d2d3
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.
You can use this package in your project by adding the following to your Cargo.toml
:
[dependencies] unicode-xid = "0.1.0"