commit | 93da6338b3a70320fc5fd9ba59b3305138d6ca87 | [log] [tgz] |
---|---|---|
author | Hasini Gunasinghe <hasinitg@google.com> | Thu May 19 16:24:06 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu May 19 16:24:06 2022 +0000 |
tree | 36f779c2efb7e7a01cd1544bc91ea42afabf6e22 | |
parent | d9b77fd7cfd092afd5776b062fb2de36ba7c5218 [diff] | |
parent | 1bf4c71ef066e89c09033ffc0effba9935bf3ce4 [diff] |
Restrict the import of std crate to dylib only. am: b8d1a747d4 am: 51fe992c94 am: 1bf4c71ef0 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/2098651 Change-Id: Ibad7a08f277e81fb8d752ba33b69113c5d87f169 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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.