tag | a7195543f597e41546ca7557b7a91f53a13720f2 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Apr 12 14:25:06 2023 -0700 |
object | ec43450fa8e1ee0ff91b75317dc712a1787c7fa1 |
Android U Beta 1 GPL
commit | ec43450fa8e1ee0ff91b75317dc712a1787c7fa1 | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Thu Mar 09 15:13:24 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Mar 09 15:13:24 2023 +0000 |
tree | 105ba11fd4b0f188e43f4106db8f315a4c63866c | |
parent | 5f758c36a7546d967a06ae638ea4dfb9a5ff7d1b [diff] | |
parent | 348239c2ceb2c01b3d558c3782396c65e8d14e2d [diff] |
Make unicode-xid available to product and vendor am: 348239c2ce Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/2475808 Change-Id: I4fc6ed15c82fc80638ed990c71c6b138206828e7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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.
const
tables with static
tables.