commit | 5cf72bca59b0f85b0a323cc2db9c0282b8ca40d0 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Wed Dec 16 16:02:04 2020 -0800 |
committer | Joel Galenson <jgalenson@google.com> | Wed Jan 06 12:02:26 2021 -0800 |
tree | 6be688d61ba4df9acd1d59ad27e37c4aff141f2d | |
parent | 79cd83fdaaed8b71352eb58110bf488f53d59bed [diff] |
Remove custom AndroidTest.xml Test: Will run Forrest Change-Id: I40e619e2562b48942fc9373d8cb097ec0194c5ad
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.