commonMain.food_drink.drink._allDrink.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of emoji-kt Show documentation
Show all versions of emoji-kt Show documentation
Emoji support for Kotlin/Multiplatform
package org.kodein.emoji.food_drink.drink
import org.kodein.emoji.Emoji
import org.kodein.emoji.EmojiFinder
import org.kodein.emoji.addSt1Variations
import org.kodein.emoji.addSt2Variations
internal fun EmojiFinder.addAllDrink() {
add(intArrayOf(0x1f9ca), _Ice)
add(intArrayOf(0x1f964), _CupWithStraw)
add(intArrayOf(0x1f9cb), _BubbleTea)
add(intArrayOf(0x1f9c3), _BeverageBox)
add(intArrayOf(0x1f95b), _GlassOfMilk)
add(intArrayOf(0x1f37c), _BabyBottle)
add(intArrayOf(0x1f375), _TeacupWithoutHandle)
add(intArrayOf(0x2615), _HotBeverage)
add(intArrayOf(0x1fad6), _Teapot)
add(intArrayOf(0x1f9c9), _Mate)
add(intArrayOf(0x1f37a), _BeerMug)
add(intArrayOf(0x1f37b), _ClinkingBeerMugs)
add(intArrayOf(0x1f942), _ClinkingGlasses)
add(intArrayOf(0x1f37e), _BottleWithPoppingCork)
add(intArrayOf(0x1f377), _WineGlass)
add(intArrayOf(0x1f943), _TumblerGlass)
add(intArrayOf(0x1fad7), _PouringLiquid)
add(intArrayOf(0x1f378), _CocktailGlass)
add(intArrayOf(0x1f379), _TropicalDrink)
add(intArrayOf(0x1f376), _Sake)
}
internal fun MutableList.addAllDrink() {
add(_Ice)
add(_CupWithStraw)
add(_BubbleTea)
add(_BeverageBox)
add(_GlassOfMilk)
add(_BabyBottle)
add(_TeacupWithoutHandle)
add(_HotBeverage)
add(_Teapot)
add(_Mate)
add(_BeerMug)
add(_ClinkingBeerMugs)
add(_ClinkingGlasses)
add(_BottleWithPoppingCork)
add(_WineGlass)
add(_TumblerGlass)
add(_PouringLiquid)
add(_CocktailGlass)
add(_TropicalDrink)
add(_Sake)
}
/**
* All Emoji of the Food & Drink: drink 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.allDrink(): List =
ArrayList(20).apply { addAllDrink() }
© 2015 - 2025 Weber Informatics LLC | Privacy Policy