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
98 downloads per month
8KB
112 lines
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