parseToAliases

fun EmojiManager.parseToAliases(input: String, fitzpatrickAction: FitzpatrickAction = FitzpatrickAction.PARSE): String

Replaces the emoji's unicode occurrences by one of their alias (between 2 ':').

😄 will be replaced by :smile:

When a fitzpatrick modifier is present with a PARSE action, a "|" will be appended to the alias, with the fitzpatrick type.

👦🏿 will be replaced by :boy|type_6:

When a fitzpatrick modifier is present with a REMOVE action, the modifier will be deleted.

👦🏿 will be replaced by :boy:

When a fitzpatrick modifier is present with a IGNORE action, the modifier will be ignored.

👦🏿 will be replaced by :boy:🏿

Return

the string with the emojis replaced by their alias.

Parameters

input

the string to parse

fitzpatrickAction

the action to apply for the fitzpatrick modifiers

See also