tag | f0a80d31d1332cb2e7dec707d930e269415769b8 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Feb 16 03:38:26 2022 -0800 |
object | c1699a6b818724212df7e15b961a22c6df0c9a55 |
Android Mainline 12.0.0 Release 52 (7983414,com.google.android.resolv)
commit | c1699a6b818724212df7e15b961a22c6df0c9a55 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jul 15 02:06:39 2021 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jul 15 02:06:39 2021 +0000 |
tree | 61cbc999afbb44a39051d64970ec4715eba50b3e | |
parent | c1e423c8e1d800a433ed8156fe96384d3232def5 [diff] | |
parent | 788b1177692dad380cf13694e7bf948d3f451423 [diff] |
Snap for 7550930 from 788b1177692dad380cf13694e7bf948d3f451423 to mainline-resolv-release Change-Id: Id30f6b1d51f6e78dafb69ba704647890e3dcd35d
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.