Merge pull request #47 from Marcondiro/master

Improve CI, (almost) enforce MSRV
tree: d7176f7ccd8caa9cd4661a14faa5ed45caaaac05
  1. .github/
  2. benches/
  3. scripts/
  4. src/
  5. tests/
  6. .gitignore
  7. Cargo.toml
  8. CHANGELOG.md
  9. COPYRIGHT
  10. LICENSE-APACHE
  11. LICENSE-MIT
  12. README.md
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.