#unicode #str #string #unicode-characters #character #name #return

charname

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

7 releases

0.2.15 Oct 5, 2022
0.2.14 Oct 28, 2021
0.2.1 May 26, 2020
0.2.0 May 29, 2019
0.1.0 May 15, 2018

#570 in Text processing

Download history 17/week @ 2022-12-02 25/week @ 2022-12-09 7/week @ 2022-12-16 22/week @ 2022-12-23 18/week @ 2022-12-30 18/week @ 2023-01-06 11/week @ 2023-01-13 14/week @ 2023-01-20 10/week @ 2023-01-27 17/week @ 2023-02-03 23/week @ 2023-02-10 35/week @ 2023-02-17 15/week @ 2023-03-03 20/week @ 2023-03-10 26/week @ 2023-03-17

63 downloads per month

MPL-2.0 license

230KB
116 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