commit | 03ed5661a216351cfdfd8a864d5b632b9c3f9dc1 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Tue Jan 31 22:35:14 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Jan 31 22:35:14 2023 +0000 |
tree | a0ddc43950fd35602efbb72ec30c3f9161e13d55 | |
parent | ecdda81a16df446a52c6863a97c9e2f9d983e9da [diff] | |
parent | 87ade41debe0db783bd8db370d73bcc97cd51c0c [diff] |
Update TEST_MAPPING am: 075bed150d am: 5f758c36a7 am: 87ade41deb Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/2411881 Change-Id: Ie017bcfa42a376a45431228cb3b39ba2b885afe2 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.