terhechte / emojito

Find all Emoji in a string. Supports complex emoji such as πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦.

Home Page:https://crates.io/crates/emojito

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Find all Emoji in a string. Supports complex emoji such as πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦.

https://crates.io/crates/emojito

License:MIT License


Languages

Language:Rust 100.0%