commit | d4de5a4b9e1a9d750ba41d73780855b35489b780 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Mar 10 04:19:22 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Mar 10 04:19:22 2023 +0000 |
tree | 105ba11fd4b0f188e43f4106db8f315a4c63866c | |
parent | b7d5e6e3312d2ea08774923b99a1dd6c95455050 [diff] | |
parent | 2499cd7e64e5b795db1b1b5b08a90d9035bed14e [diff] |
Snap for 9719949 from 15449292b4636a7ca121bd217f5f198317cb052a to udc-release am: 2499cd7e64 Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/21946674 Change-Id: I1f4cac3d1ef6a265436c4846a351f3be694139fa 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.