commit | 47c128d17890437590d29f98b54907e053990017 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Nov 15 00:14:36 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Nov 15 00:14:36 2023 +0000 |
tree | 481daaf95f5d40b05519180575b30a7c148e8a70 | |
parent | 74d5e1b94ce2565d2d28c147e8cbf8be326b1818 [diff] | |
parent | 17eb1da24372e4de2167366b26d28d0df8347ab7 [diff] |
Snap for 11097608 from 17eb1da24372e4de2167366b26d28d0df8347ab7 to 24Q1-release Change-Id: I63a79850f5618983d2ba172322ab89f89b42f7b1
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.