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

commonMain.smileys_emotion.face_negative._allFaceNegative.kt Maven / Gradle / Ivy

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

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


internal fun EmojiFinder.addAllFaceNegative() {
    add(intArrayOf(0x1f624), _FaceWithSteamFromNose)
    add(intArrayOf(0x1f620), _AngryFace)
    add(intArrayOf(0x1f621), _EnragedFace)
    add(intArrayOf(0x1f92c), _FaceWithSymbolsOnMouth)
    add(intArrayOf(0x1f608), _SmilingFaceWithHorns)
    add(intArrayOf(0x1f47f), _AngryFaceWithHorns)
    add(intArrayOf(0x2620, 0xfe0f), _SkullAndCrossbones)
    add(intArrayOf(0x2620), _SkullAndCrossbones)
    add(intArrayOf(0x1f480), _Skull)
}

internal fun MutableList.addAllFaceNegative() {
    add(_FaceWithSteamFromNose)
    add(_AngryFace)
    add(_EnragedFace)
    add(_FaceWithSymbolsOnMouth)
    add(_SmilingFaceWithHorns)
    add(_AngryFaceWithHorns)
    add(_SkullAndCrossbones)
    add(_Skull)
}

/**
 * All Emoji of the Smileys & Emotion: face-negative 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.allFaceNegative(): List =
    ArrayList(8).apply { addAllFaceNegative() }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy