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

#338 in Text processing

Download history 379343/week @ 2024-12-17 210794/week @ 2024-12-24 282660/week @ 2024-12-31 457307/week @ 2025-01-07 499458/week @ 2025-01-14 580217/week @ 2025-01-21 607119/week @ 2025-01-28 673165/week @ 2025-02-04 651022/week @ 2025-02-11 707723/week @ 2025-02-18 760180/week @ 2025-02-25 784727/week @ 2025-03-04 775256/week @ 2025-03-11 794152/week @ 2025-03-18 746245/week @ 2025-03-25 771991/week @ 2025-04-01

3,239,082 downloads per month
Used in 3,294 crates (16 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