All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.smileys_emotion.face_costume._allFaceCostume.kt Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package org.kodein.emoji.smileys_emotion.face_costume

import org.kodein.emoji.Emoji
import org.kodein.emoji.EmojiFinder
import org.kodein.emoji.addSt1Variations
import org.kodein.emoji.addSt2Variations


internal fun EmojiFinder.addAllFaceCostume() {
    add(intArrayOf(0x1f921), _ClownFace)
    add(intArrayOf(0x1f47b), _Ghost)
    add(intArrayOf(0x1f4a9), _PileOfPoo)
    add(intArrayOf(0x1f916), _Robot)
    add(intArrayOf(0x1f47d), _Alien)
    add(intArrayOf(0x1f47e), _AlienMonster)
    add(intArrayOf(0x1f479), _Ogre)
    add(intArrayOf(0x1f47a), _Goblin)
}

internal fun MutableList.addAllFaceCostume() {
    add(_ClownFace)
    add(_Ghost)
    add(_PileOfPoo)
    add(_Robot)
    add(_Alien)
    add(_AlienMonster)
    add(_Ogre)
    add(_Goblin)
}

/**
 * All Emoji of the Smileys & Emotion: face-costume subgroup.
 *
 * WARNING: This can be quite heavy to construct.
 * This method should be called in background and its result should be cached.
*/
public fun Emoji.Companion.allFaceCostume(): List =
    ArrayList(8).apply { addAllFaceCostume() }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy