commit | 227e36dc005eabe0a450cd454e7db743db248096 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Mon Oct 14 15:04:16 2024 +0000 |
committer | James Farrell <[email protected]> | Mon Oct 14 15:04:16 2024 +0000 |
tree | b3394a2c21116b4615cdda454c5f906304788f52 | |
parent | 8778875843c880291c5d6bfdc72b133107d638d7 [diff] |
Migrate 8 crates to monorepo unicode-xid uniffi_core uniffi_macros vhost vhost-user-backend vm-memory vmm-sys-util yaml-rust Bug: http://b/339424309 Test: treehugger Change-Id: I9a98d3cd3d7f98b386d3ecd4b94edfa63b6a91ec
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.