| commit | 47092a92cdba0a72b92b9d0aec26fba427a02127 | [log] [tgz] |
|---|---|---|
| author | android-build-team Robot <[email protected]> | Mon Jun 21 15:07:29 2021 +0000 |
| committer | android-build-team Robot <[email protected]> | Mon Jun 21 15:07:29 2021 +0000 |
| tree | 61cbc999afbb44a39051d64970ec4715eba50b3e | |
| parent | c1e423c8e1d800a433ed8156fe96384d3232def5 [diff] | |
| parent | 788b1177692dad380cf13694e7bf948d3f451423 [diff] |
Snap for 7478067 from 788b1177692dad380cf13694e7bf948d3f451423 to mainline-ipsec-release Change-Id: I2fc521044ce90c9381a244604f70adf1cf8b19cc
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.