tag | f8f2e28d964eef4d8fda066087fc3de4fb492507 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Sep 06 06:27:05 2023 -0700 |
object | bc50b0faabc6814b6c746598a1a8beea7d742712 |
Android platform 13.0.0 release 11
commit | bc50b0faabc6814b6c746598a1a8beea7d742712 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Nov 01 21:34:47 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Nov 01 21:34:47 2022 +0000 |
tree | 2f638b0af631bc4d9825f4ea5d5afa19e188b68a | |
parent | 83ff69963b4967494d576a20eec46fa8e1c0cd00 [diff] | |
parent | e8afd53217f318f7ba0ef69319e593edeef8c55d [diff] |
Snap for 9239618 from e8afd53217f318f7ba0ef69319e593edeef8c55d to tm-platform-release Change-Id: Ifb70b59736722b4d6a833e445cd8dc65792ce5e8
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.