Crates.io | unicode-xid |
lib.rs | unicode-xid |
version | 0.2.6 |
source | src |
created_at | 2015-04-27 01:12:08.811826 |
updated_at | 2024-09-19 15:55:24.420864 |
description | Determine whether characters have the XID_Start or XID_Continue properties according to Unicode Standard Annex #31. |
homepage | https://github.com/unicode-rs/unicode-xid |
repository | https://github.com/unicode-rs/unicode-xid |
max_upload_size | |
id | 1964 |
size | 76,872 |
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.
const
tables with static
tables.