Skip to content

unicode-rs/unicode-charname

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Retrieve the name of a Unicode character.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published