tag | 0d59cc59271d2cae558e891238a8825f9c5e0c1e | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Fri Sep 17 01:20:10 2021 -0700 |
object | 0d67839c8a6462994e6e2b3e510a763608d35fc4 |
Platform Tools Release 31.0.3 (7562133)
commit | 0d67839c8a6462994e6e2b3e510a763608d35fc4 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jul 08 01:05:57 2021 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jul 08 01:05:57 2021 +0000 |
tree | 0d25cea036e87487b61cba91efc0d972ba234d12 | |
parent | 966bdba2d1bcb5546cdfec7971b586db8b460c29 [diff] | |
parent | 7bc3042bbf36a22a89f09ef51fe7c15a8be329ab [diff] |
Snap for 7529902 from 7bc3042bbf36a22a89f09ef51fe7c15a8be329ab to sdk-release Change-Id: I70d73c9c5cd73ec81624f3ff158e74ed302740f5
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.