unicode-charname 0.1.0

This crate provides functions for retrieving Unicode character name properties as described in Unicode Standard Annex #44.
Documentation
  • Coverage
  • 100%
    6 out of 6 items documented3 out of 5 items with examples
  • Size
  • Source code size: 1.36 MB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 42.35 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • unicode-rs/unicode-charname
    4 2 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Manishearth crlf0710

unicode-charname

Docs

Unicode character name properties as described in Unicode Standard Annex #44.

extern crate unicode_charname;

use unicode_charname::CharName;

fn main() {
    assert_eq!('A'.char_name().unwrap_or_default().to_string(),
                "LATIN CAPITAL LETTER A");
}

crates.io

You can use this package in your project by adding the following to your Cargo.toml:

[dependencies]
unicode-charname = "0.1"

no_std + alloc support

This crate is completely no_std + alloc compatible. This can be enabled by disabling the std feature, i.e. specifying default-features = false for this crate on your Cargo.toml.