tag | 355194001aec7589485e030640c97e174edb956d | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Mar 02 16:28:55 2020 -0800 |
object | ee54a4e124a59d921b0313c10a393218013645e1 |
Platform Tools Release 29.0.6 (6198805)
commit | ee54a4e124a59d921b0313c10a393218013645e1 | [log] [tgz] |
---|---|---|
author | android-build-prod (mdb) <android-build-team-robot@google.com> | Tue Feb 11 20:26:48 2020 +0000 |
committer | android-build-prod (mdb) <android-build-team-robot@google.com> | Tue Feb 11 20:26:48 2020 +0000 |
tree | c522aecaa562186be0acbc65da2acb2eb932e3ec | |
parent | 1809e3e8893e8d9fdec6b842427b7ffdbeb92a23 [diff] | |
parent | 9d7cf926efeecd1ab96863471428d0373133bf49 [diff] |
Snap for 6198741 from 9d7cf926efeecd1ab96863471428d0373133bf49 to sdk-release Change-Id: Ifa0f5ec839c92e92e8dad2463e34704f3ee32f9d
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"