#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

#1835 in Text processing

Download history 27/week @ 2024-07-22 15/week @ 2024-07-29 14/week @ 2024-08-05 2/week @ 2024-08-12 79/week @ 2024-08-19 57/week @ 2024-08-26 34/week @ 2024-09-02 31/week @ 2024-09-09 73/week @ 2024-09-16 28/week @ 2024-09-23 13/week @ 2024-09-30 13/week @ 2024-10-07 36/week @ 2024-10-14 15/week @ 2024-10-21 26/week @ 2024-10-28 20/week @ 2024-11-04

98 downloads per month

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

~51MB
~1.5M SLoC