commit | 8778875843c880291c5d6bfdc72b133107d638d7 | [log] [tgz] |
---|---|---|
author | James Farrell <jamesfarrell@google.com> | Thu Oct 10 17:06:09 2024 +0000 |
committer | James Farrell <jamesfarrell@google.com> | Thu Oct 10 17:06:09 2024 +0000 |
tree | 119d2ba151a79de50b66e84eea33403bf1aaf756 | |
parent | 60a8c7902acdcb030ec8a56cc4be6f83109e1b96 [diff] |
Fix the patch file. Avoid patch-ception. Don't patch the patch. Bug: http://b/339424309 Test: treehugger Change-Id: Id21d61ebbfd009a2ff193fe8aa942067704aff26
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.