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

commonMain.animals_nature._allAnimalsNature.kt Maven / Gradle / Ivy

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

import org.kodein.emoji.Emoji
import org.kodein.emoji.EmojiFinder
import org.kodein.emoji.animals_nature.animal_bug.*
import org.kodein.emoji.animals_nature.plant_flower.*
import org.kodein.emoji.animals_nature.animal_marine.*
import org.kodein.emoji.animals_nature.animal_bird.*
import org.kodein.emoji.animals_nature.animal_mammal.*
import org.kodein.emoji.animals_nature.animal_amphibian.*
import org.kodein.emoji.animals_nature.plant_other.*
import org.kodein.emoji.animals_nature.animal_reptile.*


internal fun EmojiFinder.addAllAnimalsNature() {
    addAllAnimalBug()
    addAllPlantFlower()
    addAllAnimalMarine()
    addAllAnimalBird()
    addAllAnimalMammal()
    addAllAnimalAmphibian()
    addAllPlantOther()
    addAllAnimalReptile()
}

internal fun MutableList.addAllAnimalsNature() {
    addAllAnimalBug()
    addAllPlantFlower()
    addAllAnimalMarine()
    addAllAnimalBird()
    addAllAnimalMammal()
    addAllAnimalAmphibian()
    addAllPlantOther()
    addAllAnimalReptile()
}

/**
 * All Emoji of the Animals & Nature group.
 *
 * 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.allAnimalsNature(): List =
    ArrayList(153).apply { addAllAnimalsNature() }

internal fun allAnimalsNatureSubgroups(): Map List> =
    mapOf(
        "animal_bug" to { Emoji.allAnimalBug() },
        "plant_flower" to { Emoji.allPlantFlower() },
        "animal_marine" to { Emoji.allAnimalMarine() },
        "animal_bird" to { Emoji.allAnimalBird() },
        "animal_mammal" to { Emoji.allAnimalMammal() },
        "animal_amphibian" to { Emoji.allAnimalAmphibian() },
        "plant_other" to { Emoji.allPlantOther() },
        "animal_reptile" to { Emoji.allAnimalReptile() },
    )




© 2015 - 2025 Weber Informatics LLC | Privacy Policy