commit | 27031de3d681ad4531f29f5614a78f2cdc1166d4 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Dec 16 02:07:45 2021 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Dec 16 02:07:45 2021 +0000 |
tree | 81fe12b3e87bfd26939ec00ceb8a71c877757b6c | |
parent | d9714117d46d5ff4cde6daf5d76467bfde8ad6a9 [diff] | |
parent | 869fec56d6999075fe2c0417491cbe8851e78a19 [diff] |
Snap for 8006021 from 869fec56d6999075fe2c0417491cbe8851e78a19 to tm-release Change-Id: I150044b05a21fdd375d2401c119b0852537fe7b5
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.