#emoji #string #find #unicode #search

emojito

Find all the Emoji in a string. Supports composed emoji.

4 releases (2 breaking)

0.3.5 Dec 20, 2022
0.3.0 Dec 20, 2022
0.2.1 May 6, 2022
0.1.0 May 5, 2022

#1964 in Text processing

Download history 20/week @ 2024-10-20 23/week @ 2024-10-27 22/week @ 2024-11-03 17/week @ 2024-11-10 12/week @ 2024-11-17 12/week @ 2024-11-24 27/week @ 2024-12-01 51/week @ 2024-12-08 25/week @ 2024-12-15 2/week @ 2024-12-22 1/week @ 2024-12-29 11/week @ 2025-01-05 51/week @ 2025-01-12 57/week @ 2025-01-19 18/week @ 2025-01-26 24/week @ 2025-02-02

152 downloads per month
Used in skytool

MIT license

8KB
112 lines

license Rust CI Documentation

Emojito

emojito = "0.2.1"

Find Emoji in strings. Supports complex emoji such as ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ. Uses the unic-emoji-char crate in the background, and does not rely on regexes.

Usage

let content = "Test ๐Ÿ˜˜โค๏ธ! ๐Ÿ˜ป๐Ÿ’“ ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆ  kk ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ";
let emojis = emojito::find_emoji(content);
assert_eq!(emojis.len(), 6);

lib.rs:

Emojito

Find Emoji in strings. Supports complex emoji such as ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ. Uses the unic-emoji-char crate in the background, and does not rely on regexes.

Usage

let content = "Test ๐Ÿ˜˜โค๏ธ! ๐Ÿ˜ป๐Ÿ’“ ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆ  kk ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ";
let emojis = emojito::find_emoji(content);
assert_eq!(emojis.len(), 6);

Dependencies

~52MB
~1.5M SLoC