tag | 7992d98c90a682e2d945d5cb32c07c3c639746b5 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue Feb 11 11:42:44 2020 -0800 |
object | 646c3ef5331c70ab9de994eaeed65079e2f08b84 |
Android Mainline 10.0.0 Release 8 (6011569)
commit | 646c3ef5331c70ab9de994eaeed65079e2f08b84 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Mon Nov 11 21:25:00 2019 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | 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"