tag | ba47e54202106892f391fb89651c9574da8254f5 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue Mar 12 15:41:18 2024 -0700 |
object | b1feefe6802340428d4ccc686635041b4dc37fdb |
aml_ase_341410000
commit | b1feefe6802340428d4ccc686635041b4dc37fdb | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 04:45:50 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 04:45:50 2023 +0000 |
tree | 105ba11fd4b0f188e43f4106db8f315a4c63866c | |
parent | bd8e405fbb6cfa58acb6dfcaaa72ca7e1f44b594 [diff] | |
parent | 166b9fb9b503067dfd08cdf95b98dd1987db3bf0 [diff] |
Snap for 10453563 from 166b9fb9b503067dfd08cdf95b98dd1987db3bf0 to mainline-appsearch-release Change-Id: I7de23cad1e6f637fa29b22b10ff2d6fb16d05057
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.
const
tables with static
tables.