commit | 3ed88006c74ef56a0bbc80b402f2f0a7fbb6e060 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Thu Aug 27 09:44:16 2020 -0700 |
committer | Xin Li <delphij@google.com> | Thu Aug 27 09:44:16 2020 -0700 |
tree | 140e5b352b3bc1985fba7851ecf9e190779fc2fb | |
parent | 4bc9c6165d6e95b7ecb2429e6ffeebcc03193add [diff] | |
parent | 95038bb52d3514a6ee4ca43a07c6b08398f93d0b [diff] |
Mark Android R (rvc-dev-plus-aosp-without-vendor@6692709) as merged Bug: 166295507 Merged-In: Icb17652fb05e4f0a8f3c5846514c6701080d7bba Change-Id: Iad8de804830bc197d9df400df9b722bf37bb87ed
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.