/emojicon

Find Emoji by using Emoticons and GitHub's, Bengali emoji names.

Primary LanguageRustMIT LicenseMIT

emojicon

Build Status crates.io docs.rs Rust

Find Emoji by using Emoticons and GitHub's, Bengali emoji names.

use emojicon::{Emojicon, BengaliEmoji};
fn main() {
    let emojicon = Emojicon::new();
    assert_eq!(emojicon.get_by_emoticon("B-)"), Some("😎"));
    assert_eq!(emojicon.get_by_name("cool").unwrap().collect::<Vec<_>>(), ["😎", "🆒"]);
    
    let emojis = BengaliEmoji::new();
    assert_eq!(emojis.get("কুল").unwrap().collect::<Vec<_>>(), ["🆒", "😎"]);
}

Acknowledgment