commit | 3df866279525f46a356a3d879e03acdbcb17d922 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Mon Aug 30 21:50:18 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Aug 30 21:50:18 2021 +0000 |
tree | 49e20d866472411ea1017139f993fbded1ae03b6 | |
parent | a34213b9d3acfbbde3588e7d365487aae8f41d98 [diff] | |
parent | 7a00f0454a217c1d4d0e3b6d78b54045744dd1f8 [diff] |
Update TEST_MAPPING am: fd59300003 am: f26657391d am: fab630ee16 am: 7a00f0454a Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/1813576 Change-Id: Iefe5725c3c1d830dc8d3fdcc24f0eedc928ef9e7
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.