tag | b236c598906f99f88f657842e46505ddd9d0c8c1 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Fri May 26 06:11:58 2023 -0700 |
object | defc9e0d4f9927e945fc33c221f137c7d3ea24f8 |
aml_ads_331710270
commit | defc9e0d4f9927e945fc33c221f137c7d3ea24f8 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Mar 16 22:42:30 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Mar 16 22:42:30 2022 +0000 |
tree | 2f638b0af631bc4d9825f4ea5d5afa19e188b68a | |
parent | 869fec56d6999075fe2c0417491cbe8851e78a19 [diff] | |
parent | bd8e405fbb6cfa58acb6dfcaaa72ca7e1f44b594 [diff] |
Snap for 8310876 from bd8e405fbb6cfa58acb6dfcaaa72ca7e1f44b594 to mainline-adservices-release Change-Id: I92543b09f9b2e639bc42a5ad8c6b2a94eafa12a3
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.