commit | d8853c5a60efc2854e1c521b1de6b8a4f6e4bb87 | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Tue Jun 14 17:29:33 2022 -0700 |
committer | Matthew Maurer <mmaurer@google.com> | Tue Jun 14 17:29:33 2022 -0700 |
tree | 8bdbff28bcf159765b72c2cda9da1161164fdcfb | |
parent | 8cfc6f3d85c0ce181dbeb85e0fa1a85e749aab43 [diff] |
Update TEST_MAPPING Test: None Bug: 236006683 Change-Id: I8851ac876e57753a987b03a4a4431284079c2d2a
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.