| commit | 326065a9b8bc46894e0f05d5c61e4ec0d0d2d0d1 | [log] [tgz] |
|---|---|---|
| author | James Farrell <jamesfarrell@google.com> | Wed May 22 23:16:10 2024 +0000 |
| committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed May 22 23:16:10 2024 +0000 |
| tree | 458ddb21397be5e55bf69850a1e03c8829233329 | |
| parent | 17eb1da24372e4de2167366b26d28d0df8347ab7 [diff] | |
| parent | 4fe32db66564e5d9077d1f7fd12b14278e79ff5e [diff] |
Update Android.bp by running cargo_embargo am: 4fe32db665 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/3096121 Change-Id: I9c6316a3e584afafe2d9f27e52c7b08bf994e5d4 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.