Emojito: Find all Emoji in a string. Supports complex emoji such as family
โ Published:
Find Emoji in strings. Supports complex emoji such as ๐จโ๐ฉโ๐งโ๐ฆ. Uses the unic-emoji-char crate in the background, and does not rely on regexes.
Emojito: Find all Emoji in a string. Supports complex emoji such as family
Iโve released a small new Rust crate which solves a kind of complex unicode problem: It helps finding Emoji in strings. Supports complex emoji such as ๐จโ๐ฉโ๐งโ๐ฆ. Uses the unic-emoji-char crate in the background, and does not rely on regexes.
For example:
let content = "Test ๐โค๏ธ! ๐ป๐ ๐จโ๐ฉโ๐ฆ kk ๐จโ๐ฉโ๐งโ๐ฆ";
let emojis = emojito::find_emoji(content);
assert_eq!(emojis.len(), 6);
It, it correctly finds 6 emoji even though some of them are complex combinations of multiple emojis.