Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
patches/ | 23-Nov-2023 | - | 17 | 14 | ||
src/ | 23-Nov-2023 | - | 1,602 | 1,491 | ||
tests/ | 23-Nov-2023 | - | 26 | 20 | ||
.cargo_vcs_info.json | D | 23-Nov-2023 | 74 | 6 | 5 | |
.gitignore | D | 23-Nov-2023 | 30 | 4 | 3 | |
Android.bp | D | 23-Nov-2023 | 2.6 KiB | 91 | 81 | |
COPYRIGHT | D | 23-Nov-2023 | 321 | 8 | 7 | |
Cargo.toml | D | 23-Nov-2023 | 1.2 KiB | 32 | 29 | |
Cargo.toml.orig | D | 23-Nov-2023 | 715 | 29 | 24 | |
LICENSE | D | 23-Nov-2023 | 10.6 KiB | 202 | 169 | |
LICENSE-APACHE | D | 23-Nov-2023 | 10.6 KiB | 202 | 169 | |
LICENSE-MIT | D | 23-Nov-2023 | 1 KiB | 26 | 22 | |
METADATA | D | 23-Nov-2023 | 467 | 20 | 19 | |
MODULE_LICENSE_APACHE2 | D | 23-Nov-2023 | 0 | |||
OWNERS | D | 23-Nov-2023 | 40 | 2 | 1 | |
README.md | D | 23-Nov-2023 | 784 | 36 | 21 | |
TEST_MAPPING | D | 23-Nov-2023 | 344 | 18 | 17 |
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.0 30 31- Update to Unicode 12.1.0. 32 33## 0.1.0 34 35- Initial release. 36