commit | 77d6b729c40841633d4fa40a90f7e34194c65027 | [log] [tgz] |
---|---|---|
author | Karsten Tausche <karsten@fairphone.com> | Wed Dec 08 11:07:51 2021 +0100 |
committer | Karsten Tausche <karsten@fairphone.com> | Wed Dec 08 11:07:51 2021 +0100 |
tree | f797216b35764bd1fe77fe7a569c9992241a6048 | |
parent | 2acf2ddb9c37c8c7c1e18f7fb32492ba7cca3015 [diff] | |
parent | cdb47aff23056cc7b8bd46a5dcc51fdd23734080 [diff] |
Merge tag 'android-11.0.0_r48' into int/11/fp3 Android 11.0.0 Release 48 (RD2A.211001.002) * tag 'android-11.0.0_r48': Change-Id: I88e3932b41d184aedf28795a97ef817cdd8fdc8d
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"