Philip Dukhov
05/22/2021, 2:57 PMChar.toChars(0x1F1E6 - 0x41 + ‘A’.code).concatToString()
to get 🇦 emoji (and then build a country flag of two such letters).
But now toChars
marked deprecated. I checked out https://blog.jetbrains.com/kotlin/2021/04/kotlin-1-5-0-rc-released, and I can’t seem to find the replacement. What am I missing?Paul Woitaschek
05/22/2021, 3:46 PMlouiscad
05/22/2021, 3:47 PMPaul Woitaschek
05/22/2021, 3:58 PMephemient
05/22/2021, 4:35 PMBen Woodworth
05/22/2021, 4:43 PMint.toChar()
is definitely deprecated, but not Char.toChars(codepoint)
shaktiman_droid
05/23/2021, 1:40 AM1.5
ephemient
05/23/2021, 2:14 AM@Suppress("DEPRECATION")
doesn't mean it's deprecated, it means there's no warnings if it uses deprecated functions (looks like Int.toChar
is deprecated)Philip Dukhov
05/23/2021, 2:17 AMSuppress
😁