commit | 43ec8dcfd0b5fbbfa758dbcdc7b448dca915b33c | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Fri Nov 10 02:14:21 2023 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Fri Nov 10 02:14:21 2023 +0000 |
tree | 6e0103ce0b84ffb84eeb3bc28b1e8c817308df5c | |
parent | 6da2c4b6caef2953b0bdaa81f9bc1a8e6981f8b3 [diff] | |
parent | 0136a5d252a3d1f86fd08e686cec018f83f9898b [diff] |
Snap for 11079393 from 0136a5d252a3d1f86fd08e686cec018f83f9898b to 24D1-release Change-Id: I5d7c4c30ea07525d7eb124c21bf55f184d27b359
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.