1# unicode-xid 2 3Determine if a `char` is a valid identifier for a parser and/or lexer according to 4[Unicode Standard Annex #31](https://www.unicode.org/reports/tr31/) rules. 5 6[](https://github.com/unicode-rs/unicode-xid/actions?query=branch%3Amaster) 7 8[Documentation](https://unicode-rs.github.io/unicode-xid/unicode_xid/index.html) 9 10```rust 11extern crate unicode_xid; 12 13use unicode_xid::UnicodeXID; 14 15fn main() { 16 let ch = 'a'; 17 println!("Is {} a valid start of an identifier? {}", ch, UnicodeXID::is_xid_start(ch)); 18} 19``` 20 21# features 22 23unicode-xid supports a `no_std` feature. This eliminates dependence 24on std, and instead uses equivalent functions from core. 25 26 27# changelog 28 29## 0.2.6 30 31- Update to Unicode 16.0.0. 32 33## 0.2.5 34 35- Update to Unicode 15.1.0. 36 37## 0.2.4 38 39- Update to Unicode 15.0.0. 40- Replace `const` tables with `static` tables. 41 42## 0.2.3 43 44- Update to Unicode 14.0.0. 45 46## 0.2.2 47 48- Add an ASCII fast-path. 49 50## 0.2.1 51 52- Update to Unicode 13.0.0. 53- Speed up lookup. 54 55## 0.2.0 56 57- Update to Unicode 12.1.0. 58 59## 0.1.0 60 61- Initial release. 62