tag | 951269c60dc6bc871fc1e2c72f2b4eedf6ecaa40 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Feb 10 17:16:54 2020 -0800 |
object | c281df4aec21eae38c5e6898fea07a751e0ac65f |
Android Mainline 10.0.0 Release 6 (6008993)
commit | c281df4aec21eae38c5e6898fea07a751e0ac65f | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Tue Nov 05 12:43:34 2019 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Tue Nov 05 12:43:34 2019 +0000 |
tree | 32b3c34db61ae50756c47cee698fe29a6f0e8ba7 | |
parent | 548d586410aadf9c427aa8e36adc8f890889a246 [diff] | |
parent | 7d8851e5da6f416e702b390fea1360c9b6e4e263 [diff] |
Snap for 5988121 from 7d8851e5da6f416e702b390fea1360c9b6e4e263 to qt-aml-networking-release Change-Id: I7483dcf6e97bc333f42ceffe64cab245a72d6579
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"