#unicode-characters #name #code-point #return #string #txt-file #unicode-data

charname

Incredibly simple library that just gives you the Unicode name for a character

3 stable releases

Uses new Rust 2024

1.17.0 Sep 11, 2025
1.16.0 Mar 31, 2025
1.15.1 Aug 18, 2024
0.2.15 Oct 5, 2022
0.1.0 May 15, 2018

#2778 in Text processing

45 downloads per month
Used in 2 crates (via eunicode)

MPL-2.0 license

275KB
118 lines

Basic crate to return the name for a codepoint as defined by the Unicode standard.

Names are scrapped from the UnicodeData.txt file.


charname

A library to get the name of unicode characters. Documentation

Usage

There are two available functions get_name and get_name_checked.

get_name will always return a &str. If a certain character is unknown, it returns UNKNOWN CHARACTER

get_name_checked returns Option<&str>. If a certain character is unknown, it returns None

Dependencies