tag | a51ccfb1ddf990f0ad264ddd67c0716f676cf61b | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Mar 06 15:23:01 2023 -0800 |
object | 540409c152bd75b687198fb14678a6a611216c36 |
Android Mainline Module Release 9372878,com.google.android.cellbroadcast
commit | 540409c152bd75b687198fb14678a6a611216c36 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue May 10 06:58:31 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue May 10 06:58:31 2022 +0000 |
tree | 2f638b0af631bc4d9825f4ea5d5afa19e188b68a | |
parent | 5e080ccc83f724be847873f1ef3bbb0ed179c743 [diff] | |
parent | bd8e405fbb6cfa58acb6dfcaaa72ca7e1f44b594 [diff] |
Snap for 8564071 from bd8e405fbb6cfa58acb6dfcaaa72ca7e1f44b594 to mainline-cellbroadcast-release Change-Id: Ic40f64877f2d91f76a2c7b25c0d8813396404eaa
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.