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