commit | e62dec9c4a395f4abfe53a22992ec599399dc9d3 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Thu Aug 27 21:50:30 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Aug 27 21:50:30 2020 +0000 |
tree | db17d85095a383e3bc62b208568459dea10ef56d | |
parent | 3ed88006c74ef56a0bbc80b402f2f0a7fbb6e060 [diff] | |
parent | 0493495fa1dd68cbaa5eb569633ac27e0e1d1825 [diff] |
Fix unicode-xid/METADATA am: 0493495fa1 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/1414043 Change-Id: I4ef4eddd100ba3e8630550372451ea1939a249c0
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.