commonMain.symbols.arrow._allArrow.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of emoji-kt-jvm Show documentation
Show all versions of emoji-kt-jvm Show documentation
Emoji support for Kotlin/Multiplatform
The newest version!
package org.kodein.emoji.symbols.arrow
import org.kodein.emoji.Emoji
import org.kodein.emoji.EmojiFinder
import org.kodein.emoji.addSt1Variations
import org.kodein.emoji.addSt2Variations
internal fun EmojiFinder.addAllArrow() {
add(intArrayOf(0x2b06, 0xfe0f), _UpArrow)
add(intArrayOf(0x2b06), _UpArrow)
add(intArrayOf(0x2197, 0xfe0f), _UpRightArrow)
add(intArrayOf(0x2197), _UpRightArrow)
add(intArrayOf(0x27a1, 0xfe0f), _RightArrow)
add(intArrayOf(0x27a1), _RightArrow)
add(intArrayOf(0x2198, 0xfe0f), _DownRightArrow)
add(intArrayOf(0x2198), _DownRightArrow)
add(intArrayOf(0x2b07, 0xfe0f), _DownArrow)
add(intArrayOf(0x2b07), _DownArrow)
add(intArrayOf(0x2199, 0xfe0f), _DownLeftArrow)
add(intArrayOf(0x2199), _DownLeftArrow)
add(intArrayOf(0x2b05, 0xfe0f), _LeftArrow)
add(intArrayOf(0x2b05), _LeftArrow)
add(intArrayOf(0x2196, 0xfe0f), _UpLeftArrow)
add(intArrayOf(0x2196), _UpLeftArrow)
add(intArrayOf(0x2195, 0xfe0f), _UpDownArrow)
add(intArrayOf(0x2195), _UpDownArrow)
add(intArrayOf(0x2194, 0xfe0f), _LeftRightArrow)
add(intArrayOf(0x2194), _LeftRightArrow)
add(intArrayOf(0x21a9, 0xfe0f), _RightArrowCurvingLeft)
add(intArrayOf(0x21a9), _RightArrowCurvingLeft)
add(intArrayOf(0x21aa, 0xfe0f), _LeftArrowCurvingRight)
add(intArrayOf(0x21aa), _LeftArrowCurvingRight)
add(intArrayOf(0x2934, 0xfe0f), _RightArrowCurvingUp)
add(intArrayOf(0x2934), _RightArrowCurvingUp)
add(intArrayOf(0x2935, 0xfe0f), _RightArrowCurvingDown)
add(intArrayOf(0x2935), _RightArrowCurvingDown)
add(intArrayOf(0x1f503), _ClockwiseVerticalArrows)
add(intArrayOf(0x1f504), _CounterclockwiseArrowsButton)
add(intArrayOf(0x1f519), _BackArrow)
add(intArrayOf(0x1f51a), _EndArrow)
add(intArrayOf(0x1f51b), _OnArrow)
add(intArrayOf(0x1f51c), _SoonArrow)
add(intArrayOf(0x1f51d), _TopArrow)
}
internal suspend fun SequenceScope.yieldAllArrow() {
yield(_UpArrow)
yield(_UpRightArrow)
yield(_RightArrow)
yield(_DownRightArrow)
yield(_DownArrow)
yield(_DownLeftArrow)
yield(_LeftArrow)
yield(_UpLeftArrow)
yield(_UpDownArrow)
yield(_LeftRightArrow)
yield(_RightArrowCurvingLeft)
yield(_LeftArrowCurvingRight)
yield(_RightArrowCurvingUp)
yield(_RightArrowCurvingDown)
yield(_ClockwiseVerticalArrows)
yield(_CounterclockwiseArrowsButton)
yield(_BackArrow)
yield(_EndArrow)
yield(_OnArrow)
yield(_SoonArrow)
yield(_TopArrow)
}
internal val countArrow = 21
/**
* All Emoji of the Symbols: arrow subgroup.
*/
public fun Emoji.Companion.sequenceArrow(): Sequence =
sequence { yieldAllArrow() }
/**
* All Emoji of the Symbols: arrow 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.listArrow(): List =
ArrayList(countArrow).also { list -> sequenceArrow().forEach { list.add(it) } }
@Deprecated("Renamed listArrow.", replaceWith = ReplaceWith("listArrow()"), level = DeprecationLevel.WARNING)
public fun Emoji.Companion.allArrow(): List =
listArrow()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy