tag | 4d2876310390f10a9f866646a8e848125a20c5ef | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Aug 31 06:41:20 2022 -0700 |
object | 04387591761b07542a8b55547810eec6fb32a7bf |
t_frc_med_330443030
commit | 04387591761b07542a8b55547810eec6fb32a7bf | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Apr 28 16:00:06 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Apr 28 16:00:06 2022 +0000 |
tree | 2f638b0af631bc4d9825f4ea5d5afa19e188b68a | |
parent | 4588f6491c4960fa5f8422c37f36f6ee13c08435 [diff] | |
parent | d9b77fd7cfd092afd5776b062fb2de36ba7c5218 [diff] |
Snap for 8512216 from d9b77fd7cfd092afd5776b062fb2de36ba7c5218 to tm-frc-media-release Change-Id: Ic8ace14e3132816c458e63f50ec613560f82d01a
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.