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

#341 in Text processing

Download history 607510/week @ 2025-01-29 683121/week @ 2025-02-05 649145/week @ 2025-02-12 722141/week @ 2025-02-19 762377/week @ 2025-02-26 790326/week @ 2025-03-05 779469/week @ 2025-03-12 789929/week @ 2025-03-19 737467/week @ 2025-03-26 789356/week @ 2025-04-02 769004/week @ 2025-04-09 674218/week @ 2025-04-16 716673/week @ 2025-04-23 662571/week @ 2025-04-30 745227/week @ 2025-05-07 624850/week @ 2025-05-14

2,881,811 downloads per month
Used in 3,459 crates (21 directly)

MIT/Apache

295KB
3.5K SLoC

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.


unicode-properties

Build Status Current Version License: MIT/Apache-2.0

No runtime deps

Features