commit | 17eb1da24372e4de2167366b26d28d0df8347ab7 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <[email protected]> | Tue Nov 14 14:25:47 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Tue Nov 14 14:25:47 2023 +0000 |
tree | 481daaf95f5d40b05519180575b30a7c148e8a70 | |
parent | e766eaf00ebbf575d7c7ee4696d04f2f787c81d3 [diff] | |
parent | 82d5e36cc4ac4cf5206b9abd0a9bee3680215f90 [diff] |
Migrate to cargo_embargo. am: 57f7c032aa am: 8193a2bb29 am: 82d5e36cc4 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/2828135 Change-Id: I21c7bc29f49db2315f16b21b6d6ce0040d7ba1b2 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.