commit | dab77ff2a2b9908b02c70f24f50bcbf94f9d9f0d | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Fri Jul 07 04:51:37 2023 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Fri Jul 07 04:51:37 2023 +0000 |
tree | 105ba11fd4b0f188e43f4106db8f315a4c63866c | |
parent | b5bc23b89ab3c8722dc4ffbeb4e0a4991f806667 [diff] | |
parent | 166b9fb9b503067dfd08cdf95b98dd1987db3bf0 [diff] |
Snap for 10453563 from 166b9fb9b503067dfd08cdf95b98dd1987db3bf0 to mainline-conscrypt-release Change-Id: I5a00e399bd78faf73f2c92f5ec34e39deb6f4a63
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.