commit | 6706308fd69d0e0f09a1d6565d6c949a6eb26b6d | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Wed Feb 16 21:43:49 2022 -0800 |
committer | Linux Build Service Account <lnxbuild@localhost> | Wed Feb 16 21:43:49 2022 -0800 |
tree | 81fe12b3e87bfd26939ec00ceb8a71c877757b6c | |
parent | c3034a45d9056d5d18c3d5e175311889e3d49d2b [diff] | |
parent | 10d205927b1ca3b4cbdb876e249a7f84745dddbb [diff] |
Merge 10d205927b1ca3b4cbdb876e249a7f84745dddbb on remote branch Change-Id: I27f3227f205ff59285578bf2c130407b11704851
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.