#emoji #unicode #bengali #emoticon

emojicon

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

4 releases (2 breaking)

0.3.1 Jul 13, 2022
0.3.0 Jul 9, 2021
0.2.0 Jul 7, 2021
0.1.0 Jun 6, 2021

#492 in Text processing

35 downloads per month

MIT license

130KB
3.5K SLoC

emojicon

crates.io docs.rs

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


lib.rs:

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

No runtime deps