tag | e017cd82c57a01e6b4a079578b6a0c3ff61cd9d4 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu Feb 02 01:12:35 2023 -0800 |
object | 90eb3d1838b35610ee5535fc4c2283d87f64f097 |
aml_neu_331310000 (9219948,com.google.android.neuralnetworks)
commit | 90eb3d1838b35610ee5535fc4c2283d87f64f097 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue May 10 06:58:20 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue May 10 06:58:20 2022 +0000 |
tree | 2f638b0af631bc4d9825f4ea5d5afa19e188b68a | |
parent | cfbd807495d8a1110baa6abfed91022e8a16b196 [diff] | |
parent | bd8e405fbb6cfa58acb6dfcaaa72ca7e1f44b594 [diff] |
Snap for 8564071 from bd8e405fbb6cfa58acb6dfcaaa72ca7e1f44b594 to mainline-neuralnetworks-release Change-Id: I03b57805ffd3eeaf84dff33cd655067790aafef7
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.