commonMain.smileys_emotion.face_hat._allFaceHat.kt Maven / Gradle / Ivy
package org.kodein.emoji.smileys_emotion.face_hat
import org.kodein.emoji.Emoji
import org.kodein.emoji.EmojiFinder
import org.kodein.emoji.addSt1Variations
import org.kodein.emoji.addSt2Variations
internal fun EmojiFinder.addAllFaceHat() {
add(intArrayOf(0x1f973), _PartyingFace)
add(intArrayOf(0x1f920), _CowboyHatFace)
add(intArrayOf(0x1f978), _DisguisedFace)
}
internal fun MutableList.addAllFaceHat() {
add(_PartyingFace)
add(_CowboyHatFace)
add(_DisguisedFace)
}
/**
* All Emoji of the Smileys & Emotion: face-hat 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.allFaceHat(): List =
ArrayList(3).apply { addAllFaceHat() }
© 2015 - 2025 Weber Informatics LLC | Privacy Policy