#unicode-characters #character #name #string #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

#347 in Text processing

Download history 143/week @ 2024-08-16 34/week @ 2024-08-23 9/week @ 2024-08-30 5/week @ 2024-09-06 4/week @ 2024-09-13 42/week @ 2024-09-20 55/week @ 2024-09-27 75/week @ 2024-10-04 75/week @ 2024-10-11 20/week @ 2024-10-18 4/week @ 2024-10-25 34/week @ 2024-11-01 69/week @ 2024-11-08 43/week @ 2024-11-15 63/week @ 2024-11-22 10/week @ 2024-11-29

193 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