| commit | b8671445088144bfccfb4ede57b80e06b4d93e58 | [log] [tgz] |
|---|---|---|
| author | Android Build Coastguard Worker <[email protected]> | Fri Jul 07 01:05:47 2023 +0000 |
| committer | Android Build Coastguard Worker <[email protected]> | Fri Jul 07 01:05:47 2023 +0000 |
| tree | 105ba11fd4b0f188e43f4106db8f315a4c63866c | |
| parent | 338af4bbc3b16aace997b45277336a40ec7d0d71 [diff] | |
| parent | 166b9fb9b503067dfd08cdf95b98dd1987db3bf0 [diff] |
Snap for 10447354 from 166b9fb9b503067dfd08cdf95b98dd1987db3bf0 to mainline-wifi-release Change-Id: Ibb8fe9fc26e7dba0ff68383f83f56a6c5eac0ea2
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.