commit | 66b0faa4d5a4af4a9743f57a67574e31372497a8 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Thu Feb 17 03:25:57 2022 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Thu Feb 17 03:25:57 2022 +0000 |
tree | 81fe12b3e87bfd26939ec00ceb8a71c877757b6c | |
parent | f82335f20a8eb6ec2e0f9e1719a996132d1f4d3d [diff] | |
parent | 869fec56d6999075fe2c0417491cbe8851e78a19 [diff] |
Snap for 8191477 from 869fec56d6999075fe2c0417491cbe8851e78a19 to tm-frc-networking-release Change-Id: I90331b7ecffeb283775119a6a9a73cdacac7279b
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.