Bug: 139060369

Clone this repo:
  1. e20fbf0 Merge "Remove custom AndroidTest.xml" by Treehugger Robot · 4 days ago master
  2. 5cf72bc Remove custom AndroidTest.xml by Joel Galenson · 6 weeks ago
  3. 169304d Mark ab/6881855 as merged by Xin Li · 9 weeks ago
  4. 79cd83f TEST_MAPPING: test dependers of this crate am: 8bef548e6c by Jeff Vander Stoep · 3 months ago
  5. 8bef548 TEST_MAPPING: test dependers of this crate by Jeff Vander Stoep · 3 months ago

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.