4 releases

0.1.3 Sep 30, 2024
0.1.2 Aug 19, 2024
0.1.1 Jan 18, 2024
0.1.0 Jul 27, 2023

#19 in No standard library

Download history 410238/week @ 2024-12-02 421219/week @ 2024-12-09 408106/week @ 2024-12-16 214739/week @ 2024-12-23 254981/week @ 2024-12-30 436918/week @ 2025-01-06 506454/week @ 2025-01-13 553512/week @ 2025-01-20 603689/week @ 2025-01-27 668088/week @ 2025-02-03 671508/week @ 2025-02-10 677120/week @ 2025-02-17 750284/week @ 2025-02-24 776030/week @ 2025-03-03 792246/week @ 2025-03-10 739599/week @ 2025-03-17

3,092,305 downloads per month
Used in 2,812 crates (16 directly)

MIT/Apache

295KB
3.5K SLoC

unicode-properties

Build Status Current Version License: MIT/Apache-2.0


lib.rs:

Query character Unicode properties according to Unicode Standard Annex #44 and Unicode Technical Standard #51 rules.

Currently we support the General_Category property as well as Emoji and Emoji_Component.

Future properties can be added as requested.

use unicode_properties::UnicodeEmoji;
use unicode_properties::UnicodeGeneralCategory;

let ch = '🦀'; // U+1F980 CRAB
let is_emoji = ch.is_emoji_char();
let group = ch.general_category_group();
println!("{}({:?})", ch, group);
println!("The above char {} for use as emoji char.",
         if is_emoji { "is recommended" } else { "is not recommended" });

Features

general-category

Provides the most general classification of a character, based on its primary characteristic.

emoji

Provides the emoji character properties of a character.

No runtime deps

Features