titlecase

Converts this character to title case using Unicode mapping rules of the invariant locale.

fun Char.titlecase(): String(source)
fun main() {
    val char: Char = 'k'
    val titleCase = char.titlecase()
    println(titleCase)  // prints: "K"
}

Source