commit | dd0b029ce83338cf903939d42cb2543db9e592b3 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Wed Nov 15 02:14:41 2023 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Wed Nov 15 02:14:41 2023 +0000 |
tree | 481daaf95f5d40b05519180575b30a7c148e8a70 | |
parent | 43ec8dcfd0b5fbbfa758dbcdc7b448dca915b33c [diff] | |
parent | 17eb1da24372e4de2167366b26d28d0df8347ab7 [diff] |
Snap for 11098369 from 17eb1da24372e4de2167366b26d28d0df8347ab7 to 24D1-release Change-Id: Ic17b1efd8a5f5522792965d7672ed2f30db2fcee
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.