commit | 9e43a71e21f0ddee403b6ebea8e2b2066ffaf2a3 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Wed May 22 23:33:38 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed May 22 23:33:38 2024 +0000 |
tree | 458ddb21397be5e55bf69850a1e03c8829233329 | |
parent | 17eb1da24372e4de2167366b26d28d0df8347ab7 [diff] | |
parent | 326065a9b8bc46894e0f05d5c61e4ec0d0d2d0d1 [diff] |
Update Android.bp by running cargo_embargo am: 4fe32db665 am: 326065a9b8 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/3096121 Change-Id: Ia062275f5c586af77cb5900eab15bd0b0902f194 Signed-off-by: Automerger Merge Worker <[email protected]>
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.