An emoji to shortcode mapping. This is a class that should be declared and used as an implicit value, so that shortcode mappings don't have to be global across an application.
An emoji to shortcode mapping. This is a class that should be declared and used as an implicit value, so that shortcode mappings don't have to be global across an application.
"import ShortCodes.Defaults." to import the default shortcode mapping. "import ShortCodes.Implicits." to enrich Emoji and String with shortcode methods.
- Companion
- object
Value members
Concrete methods
Completely removes the emoji and shortcodes from the mapping.
Completely removes the emoji and shortcodes from the mapping.
Returns Some(emoji) if a short code is defined, None otherwise
Returns Some(emoji) if a short code is defined, None otherwise
Defines a mapping between an emoji and a short code. Emojis may have multiple short code mappings.
Defines a mapping between an emoji and a short code. Emojis may have multiple short code mappings.
Removes a shortcode from the mapping. This does not remove the emoji.
Removes a shortcode from the mapping. This does not remove the emoji.
Removes emoji from the shortcodes mapping. This removes all the codes that map to the emoji as well.
Removes emoji from the shortcodes mapping. This removes all the codes that map to the emoji as well.