tag | dee3929e81fcdc76a164974644df16d76f35d87b | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Feb 16 00:15:50 2022 -0800 |
object | 66aa931da96a6b29447023d1348cd911f0835444 |
Android Mainline 12.0.0 Release 41 (7929549,com.google.android.adbd)
commit | 66aa931da96a6b29447023d1348cd911f0835444 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Mon Jun 21 14:30:32 2021 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Mon Jun 21 14:30:32 2021 +0000 |
tree | 61cbc999afbb44a39051d64970ec4715eba50b3e | |
parent | c1e423c8e1d800a433ed8156fe96384d3232def5 [diff] | |
parent | 788b1177692dad380cf13694e7bf948d3f451423 [diff] |
Snap for 7478028 from 788b1177692dad380cf13694e7bf948d3f451423 to mainline-adbd-release Change-Id: I834c69493115494887f1ed744fc028f6a7796007
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.