commit | 73ecf505ab3aefe3c136d74e419ae060e3a445e5 | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Sun Jan 16 14:32:22 2022 -0800 |
committer | Linux Build Service Account <lnxbuild@localhost> | Sun Jan 16 14:32:22 2022 -0800 |
tree | 61cbc999afbb44a39051d64970ec4715eba50b3e | |
parent | 16ee6826344be87586a1f1348770140531a1ed0f [diff] | |
parent | 03476e168276d851754442534644bce772a057d5 [diff] |
Merge 03476e168276d851754442534644bce772a057d5 on remote branch Change-Id: I00efcca15513f2d911ea2f1b68e36e61115610dd
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.