tag | 9fc9bcfd5509963f4991b3ccb7ad594b9a8d4d85 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu Apr 15 10:59:56 2021 -0700 |
object | 6683ac4c8053e0ea9593b8dfb013dac8b8f0a27f |
Platform Tools Release 31.0.1 (7187441)
commit | 6683ac4c8053e0ea9593b8dfb013dac8b8f0a27f | [log] [tgz] |
---|---|---|
author | android-build-prod (mdb) <android-build-team-robot@google.com> | Thu Mar 04 00:39:52 2021 +0000 |
committer | android-build-prod (mdb) <android-build-team-robot@google.com> | Thu Mar 04 00:39:52 2021 +0000 |
tree | 61cbc999afbb44a39051d64970ec4715eba50b3e | |
parent | 00ea7b33afb2bab930e69a30e7e286a47e004df1 [diff] | |
parent | 74fd093f8c736bda8059054d698804913724b609 [diff] |
Snap for 7183507 from 74fd093f8c736bda8059054d698804913724b609 to sdk-release Change-Id: I0e65f85f3fbd8658bf7e18884817d7e44b9cf312
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.