commit | 28c3ec8fc4f0ef784aa338d7ff936df62096c080 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Tue Jul 21 00:48:24 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Jul 21 00:48:24 2020 +0000 |
tree | 140e5b352b3bc1985fba7851ecf9e190779fc2fb | |
parent | 773f5e18807376310f8f0de5762f5dd5ac1e43f6 [diff] | |
parent | 844962f764b704addfcd2ba95ba8dd34c7b5fd6b [diff] |
Upgrade rust/crates/unicode-xid to 0.2.1 am: fed503e5e9 am: 4bc9c6165d am: 844962f764 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/1360599 Change-Id: I426af9aad28218d19b466fbef76abd39035dc278
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.