commit | e766eaf00ebbf575d7c7ee4696d04f2f787c81d3 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <[email protected]> | Tue Nov 14 14:21:43 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Tue Nov 14 14:21:43 2023 +0000 |
tree | 481daaf95f5d40b05519180575b30a7c148e8a70 | |
parent | 0136a5d252a3d1f86fd08e686cec018f83f9898b [diff] | |
parent | 9f4a0e1f3223f3b18860c2ee57b3683b439324d3 [diff] |
Migrate to cargo_embargo. am: 57f7c032aa am: 8783035a4f am: 9f4a0e1f32 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/2828135 Change-Id: I126ed05719bcfb108ffd81612d7bd2838c2d4745 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.