commit | 15449292b4636a7ca121bd217f5f198317cb052a | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Thu Mar 09 17:05:06 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Mar 09 17:05:06 2023 +0000 |
tree | 105ba11fd4b0f188e43f4106db8f315a4c63866c | |
parent | 03ed5661a216351cfdfd8a864d5b632b9c3f9dc1 [diff] | |
parent | 7d2ba533b4898ff4641850e23d5b01b18be9f33a [diff] |
Make unicode-xid available to product and vendor am: 348239c2ce am: ec43450fa8 am: 7d2ba533b4 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/2475808 Change-Id: Id3bcb3efee4bcc7083d2733c37d5b2a0176265d5 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.