tag | c629f5056ed193452ab3b0e9bbe3c1deff902018 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Oct 26 18:44:11 2022 -0700 |
object | 248c778ace4c209606a6121d05650903aac0c0ba |
aml_sdk_330810050
commit | 248c778ace4c209606a6121d05650903aac0c0ba | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue May 10 07:05:09 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue May 10 07:05:09 2022 +0000 |
tree | 2f638b0af631bc4d9825f4ea5d5afa19e188b68a | |
parent | 7adf49c9386bb8c463d1cac1ef9b068863bfd5e7 [diff] | |
parent | bd8e405fbb6cfa58acb6dfcaaa72ca7e1f44b594 [diff] |
Snap for 8564071 from bd8e405fbb6cfa58acb6dfcaaa72ca7e1f44b594 to mainline-sdkext-release Change-Id: Idccf3f21ecea4b228e77d251b2f68b0dc3a5e9d5
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.