/emojito

Find all Emoji in a string. Supports complex emoji such as ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ.

Primary LanguageRustMIT LicenseMIT

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);