commit | b89665d2df35118bea9db3455fac8d3d68d6dd2c | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Fri Oct 30 16:11:02 2020 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Mon Nov 02 02:54:49 2020 -0800 |
tree | 02a80a842c7d0c33635a82bd78c39c22bf2b4d34 | |
parent | 821d8c6ee13a8767e5f216418d7a7bd5780a1f6e [diff] |
Use cargo2android.py with a patch file. * No need to manually fix the .bp file after a version upgrade. * Clean up post_update.sh * Add the missing patch for src/lib.rs. * Fix a rustc warning with the patch in src/lib.rs. Bug: 172093078 Test: make and regenerate .bp Change-Id: Ifa32265fa0e69dcef206be6b59d656793b12f7ec
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.