commit | 1533bba721b85110cd9970803224242b52b2c923 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Thu May 23 23:15:42 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Thu May 23 23:15:42 2024 +0000 |
tree | 458ddb21397be5e55bf69850a1e03c8829233329 | |
parent | 17eb1da24372e4de2167366b26d28d0df8347ab7 [diff] | |
parent | 9e43a71e21f0ddee403b6ebea8e2b2066ffaf2a3 [diff] |
Snap for 11881322 from 9e43a71e21f0ddee403b6ebea8e2b2066ffaf2a3 to 24Q3-release Change-Id: Ic07322e231313abac2ae73facd9408a97b7cbf41
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.