commit | 4fe32db66564e5d9077d1f7fd12b14278e79ff5e | [log] [tgz] |
---|---|---|
author | James Farrell <jamesfarrell@google.com> | Tue May 21 19:00:44 2024 +0000 |
committer | James Farrell <jamesfarrell@google.com> | Tue May 21 19:00:44 2024 +0000 |
tree | 458ddb21397be5e55bf69850a1e03c8829233329 | |
parent | 17eb1da24372e4de2167366b26d28d0df8347ab7 [diff] |
Update Android.bp by running cargo_embargo Test: ran cargo_embargo Change-Id: I6baf71defb369d2c4f500ed1d7d2c75372088b6a
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.