commit | 8bef548e6ce2e2e07d84f6adb426cb3325e09e3c | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Wed Nov 04 22:03:29 2020 +0100 |
committer | Jeff Vander Stoep <jeffv@google.com> | Wed Nov 04 22:03:29 2020 +0100 |
tree | a1f15ec85f8d55864064abaaf43744a9291398f1 | |
parent | b89665d2df35118bea9db3455fac8d3d68d6dd2c [diff] |
TEST_MAPPING: test dependers of this crate Bug: 168167373 Test: TH Change-Id: Ifcda9a20449151cd5c8436d25f59bd5673c9e425
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.