TEST_MAPPING: test dependers of this crate

Bug: 168167373
Test: TH
Change-Id: Ifcda9a20449151cd5c8436d25f59bd5673c9e425
1 file changed
tree: a1f15ec85f8d55864064abaaf43744a9291398f1
  1. patches/
  2. src/
  3. tests/
  4. .cargo_vcs_info.json
  5. .gitignore
  6. Android.bp
  7. AndroidTest.xml
  8. AndroidTest_exhaustive_tests.xml
  9. Cargo.toml
  10. Cargo.toml.orig
  11. COPYRIGHT
  12. LICENSE-APACHE
  13. LICENSE-MIT
  14. METADATA
  15. MODULE_LICENSE_APACHE2
  16. OWNERS
  17. post_update.sh
  18. README.md
  19. TEST_MAPPING
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.