commit | a56f1980135444a1a8257737a866e301ea905b44 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Apr 08 16:01:48 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Apr 08 16:01:48 2022 +0000 |
tree | f797216b35764bd1fe77fe7a569c9992241a6048 | |
parent | a1a2f6227021ad65988db031db8acc55e3a2d788 [diff] | |
parent | c1e423c8e1d800a433ed8156fe96384d3232def5 [diff] |
Snap for 8426163 from c1e423c8e1d800a433ed8156fe96384d3232def5 to mainline-tzdata2-release Change-Id: Ia7c319e6c05fb0f0566fb9049b3afcd6a9f60451
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"