commit | 66bede9d7c8b8ea5ad0bc4cba2dbffb79a4bde8c | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Thu Dec 16 02:06:42 2021 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Thu Dec 16 02:06:42 2021 +0000 |
tree | 81fe12b3e87bfd26939ec00ceb8a71c877757b6c | |
parent | 0d8dd51bdaff02e4456afdb12f66e2ddac1531a2 [diff] | |
parent | 869fec56d6999075fe2c0417491cbe8851e78a19 [diff] |
Snap for 8006021 from 869fec56d6999075fe2c0417491cbe8851e78a19 to tm-d1-release Change-Id: Iabe779d49c3d4446117894b6eef5651b71a45237
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.