commit | 2d00f30d19d185bc97141c2b3d1b7b8e9a30901a | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Mon Dec 19 11:39:44 2022 +0100 |
committer | Jeff Vander Stoep <jeffv@google.com> | Thu Jan 19 11:33:00 2023 +0100 |
tree | 0c21377b7fb0bb19a2f140b9ac11e0c5e3f35c76 | |
parent | 7afaf21b64e8e8fd9234dacda62b02f1ade4a3aa [diff] |
Update unicode-xid to 0.2.4 Test: Treehugger Change-Id: Ibc642bc4b9967de20e36644ef1e425e072fb1817
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.