commit | bc38f76629ef7a77d37c15d2c3cdfdd1725d38b3 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Thu Feb 02 05:17:39 2023 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Thu Feb 02 05:17:39 2023 +0000 |
tree | a0ddc43950fd35602efbb72ec30c3f9161e13d55 | |
parent | 565d6e27ece3b9469e9c758b3eca7dc1593f6a10 [diff] | |
parent | b7d5e6e3312d2ea08774923b99a1dd6c95455050 [diff] |
Snap for 9553927 from b7d5e6e3312d2ea08774923b99a1dd6c95455050 to udc-d1-release Change-Id: I719a924e0f6d200eae8b04dadd6d2cc12ca39a49
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.