commit | e1c0b56de706b85c65491a0383d9112416711b2c | [log] [tgz] |
---|---|---|
author | android-build-team Robot <[email protected]> | Sun Feb 21 02:45:22 2021 +0000 |
committer | Automerger Merge Worker <[email protected]> | Sun Feb 21 02:45:22 2021 +0000 |
tree | 61cbc999afbb44a39051d64970ec4715eba50b3e | |
parent | f0e05d05c89790095fa9c12279f153164d760bb1 [diff] | |
parent | 644c2d0fdab01a42b72fe64a2f44f29676d8237a [diff] |
Snap for 7160059 from aea0e3ef441d27c8699d9b449fb2c76f44f7cf70 to sc-release am: 644c2d0fda Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/13646693 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I80f957dbd70705028aaaf4e062a546ffb48178ae
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.