| commit | 646c3ef5331c70ab9de994eaeed65079e2f08b84 | [log] [tgz] |
|---|---|---|
| author | android-build-team Robot <[email protected]> | Mon Nov 11 21:25:00 2019 +0000 |
| committer | android-build-team Robot <[email protected]> | Mon Nov 11 21:25:00 2019 +0000 |
| tree | 32b3c34db61ae50756c47cee698fe29a6f0e8ba7 | |
| parent | 548d586410aadf9c427aa8e36adc8f890889a246 [diff] | |
| parent | 7d8851e5da6f416e702b390fea1360c9b6e4e263 [diff] |
Snap for 6001391 from 7d8851e5da6f416e702b390fea1360c9b6e4e263 to qt-aml-resolv-release Change-Id: I537c2b7d903707125e7e17aa5635cde55dd7b86a
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"