tag | dcf4d1870889f6d52b9265c9ab6e515fcc1a9123 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Sep 08 15:04:50 2021 -0700 |
object | ef9d648474afb94f9ed58d5da7db6dec2a1aaa5f |
Android platform 11.0.0 release 10
commit | ef9d648474afb94f9ed58d5da7db6dec2a1aaa5f | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Tue Nov 03 18:11:47 2020 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Tue Nov 03 18:11:47 2020 +0000 |
tree | f797216b35764bd1fe77fe7a569c9992241a6048 | |
parent | 5a5391ab03ee8a6ec4560f2a579498c05e58857d [diff] | |
parent | 70a3956fac7f16539576dd3863ad96186f00459e [diff] |
Snap for 6948038 from 70a3956fac7f16539576dd3863ad96186f00459e to rvc-platform-release Change-Id: I2edf2e24ae649ac64315ae30353ac4cd9a73ac2f
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"