emojito

Crates.ioemojito
lib.rsemojito
version0.3.5
sourcesrc
created_at2022-05-05 09:26:07.987219
updated_at2022-12-20 10:29:30.215206
descriptionFind all the Emoji in a string. Supports composed emoji.
homepagehttps://github.com/terhechte/emojito
repositoryhttps://github.com/terhechte/emojito
max_upload_size
id580893
size10,504
Benedikt Terhechte (terhechte)

documentation

README

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);
Commit count: 13

cargo fmt