TEST_MAPPING: test dependers of this crate am: 8bef548e6c

Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/1486247

Change-Id: I1bbf2667cecdaf77a884562b64d294f6bd02f08d
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.