#unicode-characters #name #character #string

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

#850 in Text processing

Download history 22/week @ 2024-07-06 22/week @ 2024-07-13 33/week @ 2024-07-20 27/week @ 2024-07-27 40/week @ 2024-08-03 37/week @ 2024-08-10 144/week @ 2024-08-17 28/week @ 2024-08-24 8/week @ 2024-08-31 7/week @ 2024-09-07 2/week @ 2024-09-14 46/week @ 2024-09-21 74/week @ 2024-09-28 62/week @ 2024-10-05 65/week @ 2024-10-12 22/week @ 2024-10-19

227 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