commit | e7db9fb7eef8366a8f9dc56b23e8be33b0a0bdef | [log] [tgz] |
---|---|---|
author | Xin Li <[email protected]> | Sat Feb 20 13:41:44 2021 +0000 |
committer | Automerger Merge Worker <[email protected]> | Sat Feb 20 13:41:44 2021 +0000 |
tree | 61cbc999afbb44a39051d64970ec4715eba50b3e | |
parent | e6f242204b8fc675f6ad688ff86496c29324a309 [diff] | |
parent | 74fd093f8c736bda8059054d698804913724b609 [diff] |
[automerger skipped] Mark ab/7061308 as merged in stage. am: 74fd093f8c -s ours am skip reason: Change-Id I6a3fdf1243cf62d927b122acfe2cebebd7e0d3c9 with SHA-1 1316d84b38 is in history Original change: undetermined MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I7b8cc80d456e9daa1ddee767df0d3353fd37aaf8
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.