Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
scripts/ | H | 03-May-2022 | - | 188 | 145 | |
src/ | H | 03-May-2022 | - | 629 | 514 | |
.cargo-checksum.json | H A D | 03-May-2022 | 89 | 1 | 1 | |
.gitignore | H A D | 08-May-2017 | 30 | 4 | 3 | |
.travis.yml | H A D | 08-May-2017 | 923 | 26 | 25 | |
COPYRIGHT | H A D | 08-May-2017 | 321 | 8 | 7 | |
Cargo.toml | H A D | 08-May-2017 | 647 | 27 | 22 | |
LICENSE-APACHE | H A D | 08-May-2017 | 10.6 KiB | 202 | 169 | |
LICENSE-MIT | H A D | 08-May-2017 | 1 KiB | 26 | 22 | |
README.md | H A D | 08-May-2017 | 852 | 35 | 23 |
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# crates.io 27 28You can use this package in your project by adding the following 29to your `Cargo.toml`: 30 31```toml 32[dependencies] 33unicode-xid = "0.0.4" 34``` 35