toUpperCase

Warning since 1.5

expect fun Char.toUpperCase(): Char(source)
fun main() {
    val lowerChar: Char = 'k'
    val upperChar: Char = lowerChar.toUpperCase()
    println(upperChar) // Output: K
}

Source