Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 1.13 KB

README.md

File metadata and controls

24 lines (20 loc) · 1.13 KB

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