Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
benches/ | H | 03-May-2022 | - | 61 | 55 | |
src/ | H | 03-May-2022 | - | 1,609 | 1,499 | |
tests/ | H | 03-May-2022 | - | 26 | 20 | |
.cargo-checksum.json | H A D | 03-May-2022 | 89 | 1 | 1 | |
.cargo_vcs_info.json | H A D | 01-Jan-1970 | 74 | 6 | 5 | |
.gitignore | H A D | 01-Jan-1970 | 30 | 4 | 3 | |
COPYRIGHT | H A D | 01-Jan-1970 | 321 | 8 | 7 | |
Cargo.toml | H A D | 01-Jan-1970 | 1.3 KiB | 38 | 34 | |
Cargo.toml.orig-cargo | H A D | 01-Jan-1970 | 848 | 37 | 30 | |
LICENSE-APACHE | H A D | 01-Jan-1970 | 10.6 KiB | 202 | 169 | |
LICENSE-MIT | H A D | 01-Jan-1970 | 1 KiB | 26 | 22 | |
README.md | H A D | 01-Jan-1970 | 876 | 45 | 26 |
README.md
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](http://www.unicode.org/reports/tr31/) rules. 5 6[![Build Status](https://travis-ci.org/unicode-rs/unicode-xid.svg)](https://travis-ci.org/unicode-rs/unicode-xid) 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.2 30 31- Add an ASCII fast-path 32 33## 0.2.1 34 35- Update to Unicode 13.0.0 36- Speed up lookup 37 38## 0.2.0 39 40- Update to Unicode 12.1.0. 41 42## 0.1.0 43 44- Initial release. 45