5 releases (3 breaking)
0.4.0 | Jan 19, 2024 |
---|---|
0.3.1 | Jul 13, 2022 |
0.3.0 | Jul 9, 2021 |
0.2.0 | Jul 7, 2021 |
0.1.0 | Jun 6, 2021 |
#691 in Text processing
180KB
5K
SLoC
emojicon
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<_>>(), ["ð", "ð"]);
}