commit | bf55773f96b8fa2eb778de07f854a446c3b5b88a | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jun 16 22:02:45 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jun 16 22:02:45 2022 +0000 |
tree | 2f638b0af631bc4d9825f4ea5d5afa19e188b68a | |
parent | d9b77fd7cfd092afd5776b062fb2de36ba7c5218 [diff] | |
parent | bd8e405fbb6cfa58acb6dfcaaa72ca7e1f44b594 [diff] |
Snap for 8736029 from bd8e405fbb6cfa58acb6dfcaaa72ca7e1f44b594 to mainline-go-tethering-release Change-Id: I3775a7f13c08168b7d9a08f5fa7b08c51ff43549
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.