commit | 2c9e2e49a5ae0bcbf7ab6f0f0effe9f465acbf4c | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Tue Oct 15 23:14:09 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Tue Oct 15 23:14:09 2024 +0000 |
tree | b3394a2c21116b4615cdda454c5f906304788f52 | |
parent | 0577183ba6101e39f99a0e7a63e98534fc915dd4 [diff] | |
parent | 227e36dc005eabe0a450cd454e7db743db248096 [diff] |
Snap for 12503729 from 227e36dc005eabe0a450cd454e7db743db248096 to sdk-release Change-Id: I9e69ccf82e4bc66ce7efb063c584fe463ec37657
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.