tag | 22ee6efd6598f0513dcd661aab2c420ed763bb88 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu Jan 26 16:17:08 2023 -0800 |
object | 070bfea6778ffb2022e3601532deeff09de03318 |
Android 13.0.0 Release 28 (TQ1A.230205.001.B2)
commit | 070bfea6778ffb2022e3601532deeff09de03318 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Apr 06 20:37:40 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Apr 06 20:37:40 2022 +0000 |
tree | 2f638b0af631bc4d9825f4ea5d5afa19e188b68a | |
parent | 869fec56d6999075fe2c0417491cbe8851e78a19 [diff] | |
parent | d9b77fd7cfd092afd5776b062fb2de36ba7c5218 [diff] |
Snap for 8414339 from d9b77fd7cfd092afd5776b062fb2de36ba7c5218 to tm-qpr1-release Change-Id: Iba7558fc0b7f1fe9bea4a39e6a8333d394adc923
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.