Android 12.1.0 release 26
[automerger skipped] Mark ab/7061308 as merged in stage. am: 74fd093f8c -s ours am: e7db9fb7ee -s ours

am skip reason: Change-Id I6a3fdf1243cf62d927b122acfe2cebebd7e0d3c9 with SHA-1 1316d84b38 is in history

Original change: undetermined

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia1be2d330311e1eb1a4e11ed8719ded1fe4db1e4
tree: 61cbc999afbb44a39051d64970ec4715eba50b3e
  1. patches/
  2. src/
  3. tests/
  4. .cargo_vcs_info.json
  5. .gitignore
  6. Android.bp
  7. Cargo.toml
  8. Cargo.toml.orig
  9. COPYRIGHT
  10. LICENSE-APACHE
  11. LICENSE-MIT
  12. METADATA
  13. MODULE_LICENSE_APACHE2
  14. OWNERS
  15. README.md
  16. 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.