commit | 0136a5d252a3d1f86fd08e686cec018f83f9898b | [log] [tgz] |
---|---|---|
author | Treehugger Robot <[email protected]> | Thu Nov 09 02:05:58 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Thu Nov 09 02:05:58 2023 +0000 |
tree | 6e0103ce0b84ffb84eeb3bc28b1e8c817308df5c | |
parent | 6c864011881a5b0cb03e5ab9e568b4367e932c6f [diff] | |
parent | 881526829787227ca8052316a87539fc200b601e [diff] |
Merge "Adding autogenerated Trusty makefile rules" into main am: 5df714c7b5 am: 21a94a4785 am: 8815268297 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/2773168 Change-Id: I8f4489e23a0da98a009e10617a5bf7fb6b3c3961 Signed-off-by: Automerger Merge Worker <[email protected]>
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.