abrasion/third_party/cargo/vendor/unicode-xid-0.2.1
q3k 4a50bbf00d third_party/cargo: re-raze, fix winapi for windows 2021-05-03 23:43:36 +02:00
..
src third_party: bump everything 2021-01-07 23:38:16 +00:00
tests third_party: bump everything 2021-01-07 23:38:16 +00:00
.cargo-checksum.json third_party: bump everything 2021-01-07 23:38:16 +00:00
BUILD.bazel third_party/cargo: re-raze, fix winapi for windows 2021-05-03 23:43:36 +02:00
COPYRIGHT third_party: bump everything 2021-01-07 23:38:16 +00:00
Cargo.toml third_party: bump everything 2021-01-07 23:38:16 +00:00
LICENSE-APACHE third_party: bump everything 2021-01-07 23:38:16 +00:00
LICENSE-MIT third_party: bump everything 2021-01-07 23:38:16 +00:00
README.md third_party: bump everything 2021-01-07 23:38:16 +00:00

README.md

unicode-xid

Determine if a char is a valid identifier for a parser and/or lexer according to Unicode Standard Annex #31 rules.

Build Status

Documentation

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));
}

features

unicode-xid supports a no_std feature. This eliminates dependence on std, and instead uses equivalent functions from core.

changelog

0.2.0

  • Update to Unicode 12.1.0.

0.1.0

  • Initial release.