Emoji

object Emoji

This is the singleton object for Emoji.

This is the singleton object for Emoji.

Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

object Implicits

Value members

Concrete methods

def apply(chars: Array[Char]): Emoji

Returns the emoji for the given array of characters, throws EmojiNotFound

Returns the emoji for the given array of characters, throws EmojiNotFound

def apply(string: String): Emoji

Returns the emoji given a string containing the codepoint.

Returns the emoji given a string containing the codepoint.

def apply(codePoint: Int): Emoji

Returns the emoji for this codepoint if found, throws EmojiNotFound otherwise.

Returns the emoji for this codepoint if found, throws EmojiNotFound otherwise.

def get(codePoint: Int): Option[Emoji]

Returns Some(emoji) if found, None otherwise.

Returns Some(emoji) if found, None otherwise.

def isEmoji(codePoint: Int): Boolean

Returns true if this is a valid Unicode codepoint, false otherwise.

Returns true if this is a valid Unicode codepoint, false otherwise.

def name(codePoint: Int): String

Returns the unicode name for this codePoint. Throws EmojiNotFound if this is not a valid codepoint.

Returns the unicode name for this codePoint. Throws EmojiNotFound if this is not a valid codepoint.

Value Params
codePoint

the codePoint.

Returns

the unicode description of the emoji.

def toHexString(codePoint: Int): String

Returns the hexadecimal string of the code point.

Returns the hexadecimal string of the code point.

def validate(codePoint: Int): Unit

Throws an exception if this is not a valid Unicode codepoint.

Throws an exception if this is not a valid Unicode codepoint.