tag | bb257b713c9770e117c7c63947848c1627180930 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue Mar 07 00:45:40 2023 -0800 |
object | f2459fc55316c0fe1f4e705ab507b26d14b0f8fb |
Android Mainline Module Release 9560301,com.google.android.go.os.statsd
commit | f2459fc55316c0fe1f4e705ab507b26d14b0f8fb | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue May 10 07:23:12 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue May 10 07:23:12 2022 +0000 |
tree | 2f638b0af631bc4d9825f4ea5d5afa19e188b68a | |
parent | 8c18afaf1f67c2abd46c9a99a228eedaa789e06a [diff] | |
parent | bd8e405fbb6cfa58acb6dfcaaa72ca7e1f44b594 [diff] |
Snap for 8564071 from bd8e405fbb6cfa58acb6dfcaaa72ca7e1f44b594 to mainline-os-statsd-release Change-Id: I516082c1a0c66f63f5e1103af11adcd13c27c4c7
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.