View Source Exmoji.Scanner (Exmoji v0.3.2)

Provides fast searches against binary strings for the presence of UTF-8 encoded Emoji characters.

Summary

Functions

Scans a bitstring for all encoded emoji characters contained within.

Functions

Scans a bitstring for all encoded emoji characters contained within.

Returns a list of all EmojiChar contained within that string, in order.

Example

iex> Exmoji.Scanner.scan("flying on my 🚀 to visit the 👾 people.")
[%Exmoji.EmojiChar{name: "ROCKET", short_name: "rocket",
  short_names: ["rocket"], text: nil, unified: "1F680", variations: []},
 %Exmoji.EmojiChar{name: "ALIEN MONSTER", short_name: "space_invader",
  short_names: ["space_invader"], text: nil, unified: "1F47E", variations: []}]