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

commonMain.symbols.currency._allCurrency.kt Maven / Gradle / Ivy

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

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


internal fun EmojiFinder.addAllCurrency() {
    add(intArrayOf(0x1f4b1), _CurrencyExchange)
    add(intArrayOf(0x1f4b2), _HeavyDollarSign)
}

internal fun MutableList.addAllCurrency() {
    add(_CurrencyExchange)
    add(_HeavyDollarSign)
}

/**
 * All Emoji of the Symbols: currency 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.allCurrency(): List =
    ArrayList(2).apply { addAllCurrency() }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy