commit | 63a2a517f40f8d53b268ee51017566f4027a31e9 | [log] [tgz] |
---|---|---|
author | Karsten Tausche <karsten@fairphone.com> | Wed Dec 07 09:06:05 2022 +0100 |
committer | Karsten Tausche <karsten@fairphone.com> | Wed Dec 07 09:06:05 2022 +0100 |
tree | 2f638b0af631bc4d9825f4ea5d5afa19e188b68a | |
parent | 83ff69963b4967494d576a20eec46fa8e1c0cd00 [diff] | |
parent | 070bfea6778ffb2022e3601532deeff09de03318 [diff] |
Merge tag 'android-13.0.0_r16' into int/13/fp3 Android 13.0.0 Release 16 (TQ1A.221205.011) * tag 'android-13.0.0_r16': Change-Id: I6545b2aa262188805be9878576988487cf311b57
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.