commit | ba9ca59fc27706cf2fbabb71eb8343e9f16ae5c6 | [log] [tgz] |
---|---|---|
author | android-build-prod (mdb) <android-build-team-robot@google.com> | Mon Oct 26 18:18:21 2020 +0000 |
committer | android-build-prod (mdb) <android-build-team-robot@google.com> | Mon Oct 26 18:18:21 2020 +0000 |
tree | 51b8bced8d57c3adc3b768873171b769efad6286 | |
parent | 7f4bdffd660fa23a87ae85ca6a72f445067b0e8c [diff] | |
parent | 7ee0d916263e10a1678d028fc4ba4c6cfdb77bb1 [diff] |
Snap for 6912731 from 7ee0d916263e10a1678d028fc4ba4c6cfdb77bb1 to emu-30-release Change-Id: I5d6fad5cc72b3f84ba272a34c2f6ee69b2d65137
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.