commit | 38a017250544c89bc15f459cd0ad8e265e1972c3 | [log] [tgz] |
---|---|---|
author | easoncylee <easoncylee@google.com> | Tue Jul 06 02:18:06 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Jul 06 02:18:06 2021 +0000 |
tree | 0d25cea036e87487b61cba91efc0d972ba234d12 | |
parent | 65035869defc8b6a8ae40338d1a9a7731065d592 [diff] | |
parent | 96a4431be70d5775c619f2f0c9beba7db6fd1ccf [diff] |
Update vpnprofilestore_test to legacykeystore_test in TEST_MAPPING am: 7bc3042bbf am: ffa68c6555 am: 2006de37ea am: 96a4431be7 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/1755969 Change-Id: I0eca14542f986e3b2188cc21c6f73d494c23b85f
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.