uppercase

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

expect fun Char.uppercase(): String(source)
fun main() {
    val lower: Char = 'g'
    val upperCaseString = lower.uppercase()
    println(upperCaseString)  // prints "G"
}

Source