commit | b59a6d04c9b787abf4455b7100370805581cd289 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Mar 07 02:18:19 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Mar 07 02:18:19 2024 +0000 |
tree | 481daaf95f5d40b05519180575b30a7c148e8a70 | |
parent | adae98cc4915d088b36500df251fa9ccff07ce8c [diff] | |
parent | 17eb1da24372e4de2167366b26d28d0df8347ab7 [diff] |
Snap for 11541002 from 17eb1da24372e4de2167366b26d28d0df8347ab7 to sdk-release Change-Id: Iad90d431c0d30f7b1c7e03b97c20a3fa9a708196
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.