commit | b7d5e6e3312d2ea08774923b99a1dd6c95455050 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Thu Feb 02 02:30:27 2023 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Thu Feb 02 02:30:27 2023 +0000 |
tree | a0ddc43950fd35602efbb72ec30c3f9161e13d55 | |
parent | 52aca20c4a2cc9c86b95653f0d85bedbe7c7d122 [diff] | |
parent | 03ed5661a216351cfdfd8a864d5b632b9c3f9dc1 [diff] |
Snap for 9552483 from 03ed5661a216351cfdfd8a864d5b632b9c3f9dc1 to udc-release Change-Id: Ia1f31115c9ee58b29988e6a3a96a9711fcb73b8c
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.