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.