#unicode-characters #character #name #give #unknown

charname

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

8 releases (1 stable)

1.15.1 Aug 18, 2024
0.2.15 Oct 5, 2022
0.2.14 Oct 28, 2021
0.2.1 May 26, 2020
0.1.0 May 15, 2018

#507 in Text processing

Download history 21/week @ 2024-11-28 18/week @ 2024-12-05 49/week @ 2024-12-12 11/week @ 2024-12-19 6/week @ 2025-01-02 19/week @ 2025-01-09 17/week @ 2025-01-16 4/week @ 2025-01-23 14/week @ 2025-01-30 23/week @ 2025-02-06 1/week @ 2025-02-13 9/week @ 2025-02-20 40/week @ 2025-02-27 9/week @ 2025-03-06 40/week @ 2025-03-13

99 downloads per month

MPL-2.0 license

235KB
117 lines

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


lib.rs:

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

Names are scrapped from the UnicodeData.txt file.

Dependencies