commit | af623b75dce533cee4bb156e8c47ce40326bdb2d | [log] [tgz] |
---|---|---|
author | Bob Badour <bbadour@google.com> | Wed Mar 25 23:38:32 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Mar 25 23:38:32 2020 +0000 |
tree | 58bad1528c636c7803b4516ce2295f71ab621f91 | |
parent | ccedef8bfc6dca5556c47be518883c661426def6 [diff] | |
parent | 21bf589d6f54a3cd777819f6890ff4efec2ec967 [diff] |
Remove redundant NOTICE symbolic link. am: cf753a46fb am: 21bf589d6f Change-Id: I52125a3ecb98830ed14d783b1fa0a6eb27423f9d
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.
You can use this package in your project by adding the following to your Cargo.toml
:
[dependencies] unicode-xid = "0.1.0"