tag | 66fdc349a0c11cb1253242f5a4ab50439d891444 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Oct 26 18:41:29 2022 -0700 |
object | ad4cbb7e9cfdd3fcd7e042a987557679f845e738 |
aml_swc_331012020
commit | ad4cbb7e9cfdd3fcd7e042a987557679f845e738 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed May 11 05:07:29 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed May 11 05:07:29 2022 +0000 |
tree | 2f638b0af631bc4d9825f4ea5d5afa19e188b68a | |
parent | 511ac4aefe4819b11760f06fbdb71e51fc148def [diff] | |
parent | bd8e405fbb6cfa58acb6dfcaaa72ca7e1f44b594 [diff] |
Snap for 8570526 from bd8e405fbb6cfa58acb6dfcaaa72ca7e1f44b594 to mainline-media-swcodec-release Change-Id: I8cafa8370f9b09b20a56a764ae2b4524255ba0a3
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.