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

commonMain.activities.award_medal._allAwardMedal.kt Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package org.kodein.emoji.activities.award_medal

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


internal fun EmojiFinder.addAllAwardMedal() {
    add(intArrayOf(0x1f947), _FirstPlaceMedal)
    add(intArrayOf(0x1f948), _SecondPlaceMedal)
    add(intArrayOf(0x1f949), _ThirdPlaceMedal)
    add(intArrayOf(0x1f3c5), _SportsMedal)
    add(intArrayOf(0x1f396, 0xfe0f), _MilitaryMedal)
    add(intArrayOf(0x1f396), _MilitaryMedal)
    add(intArrayOf(0x1f3c6), _Trophy)
}

internal fun MutableList.addAllAwardMedal() {
    add(_FirstPlaceMedal)
    add(_SecondPlaceMedal)
    add(_ThirdPlaceMedal)
    add(_SportsMedal)
    add(_MilitaryMedal)
    add(_Trophy)
}

/**
 * All Emoji of the Activities: award-medal 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.allAwardMedal(): List =
    ArrayList(6).apply { addAllAwardMedal() }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy