tag | 0884bb00c3109cbdb9c417d40d507f02592b2873 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Feb 19 15:36:45 2020 -0800 |
object | 9d7cf926efeecd1ab96863471428d0373133bf49 |
Android R Preview 1 (RPP1.200123.016)
commit | 9d7cf926efeecd1ab96863471428d0373133bf49 | [log] [tgz] |
---|---|---|
author | Chih-hung Hsieh <chh@google.com> | Wed Dec 04 17:32:18 2019 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Dec 04 17:32:18 2019 +0000 |
tree | c522aecaa562186be0acbc65da2acb2eb932e3ec | |
parent | 6767cb6c7411395ce736b966f23d4e24a230b779 [diff] | |
parent | 5b4aa241669e262c69c7d0d4e7118b59d1623258 [diff] |
Merge "Add auto_gen_config and TEST_MAPPING."
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"