Crates.io | emojicon |
lib.rs | emojicon |
version | 0.4.0 |
source | src |
created_at | 2021-06-06 20:10:03.974483 |
updated_at | 2024-01-19 17:36:12.151345 |
description | Find Emoji by using Emoticons and GitHub's, Bengali emoji names. |
homepage | |
repository | https://github.com/mominul/emojicon |
max_upload_size | |
id | 407009 |
size | 179,092 |
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<_>>(), ["ð", "ð"]);
}