EmojiTrie

class EmojiTrie(emojis: Collection<IEmoji>)

Constructors

Link copied to clipboard
constructor(emojis: Collection<IEmoji>)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun getEmoji(unicode: CharArray, start: Int = 0, end: Int = unicode.size): IEmoji?

Finds Emoji instance from emoji unicode

Link copied to clipboard
fun isEmoji(sequence: CharArray?, start: Int = 0, end: Int = sequence?.size ?: 0): Matches

Checks if sequence of chars contain an emoji.