commit | 21a94a47855522cc961fb6451445f66452b7af5a | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Thu Nov 09 00:46:20 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Nov 09 00:46:20 2023 +0000 |
tree | 6e0103ce0b84ffb84eeb3bc28b1e8c817308df5c | |
parent | 15449292b4636a7ca121bd217f5f198317cb052a [diff] | |
parent | 5df714c7b5b4ad2accf0e2e6c4ccafe8893d0009 [diff] |
Merge "Adding autogenerated Trusty makefile rules" into main am: 5df714c7b5 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/2773168 Change-Id: I6c58c5543a794f87e2468630eb08fb866ca45ebd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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.
const
tables with static
tables.