commit | e87d9d1ab4b0f91bb9579d73f1bcef26786f8388 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Feb 02 23:56:12 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Feb 02 23:56:12 2024 +0000 |
tree | 481daaf95f5d40b05519180575b30a7c148e8a70 | |
parent | 6113d8c374267295adc9bd35bb61e8b38369e0f9 [diff] | |
parent | 8783035a4fb50b82cddc3084d243f4961d372767 [diff] |
Snap for 11400057 from 8783035a4fb50b82cddc3084d243f4961d372767 to simpleperf-release Change-Id: Iae6793423f5da66b684e4537e140311e43bcd160
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.