isUpperCase

JVM
Native
1.0
fun Char.isUpperCase(): Boolean
For JVM

Returns true if this character is upper case.

import kotlin.test.*
import java.util.*

fun main(args: Array<String>) {
//sampleStart
val chars = listOf('A', 'Ψ', 'a', '1', '+')
val (upperCases, notUpperCases) = chars.partition { it.isUpperCase() }
println(upperCases) // [A, Ψ]
println(notUpperCases) // [a, 1, +]
//sampleEnd
}
For Native

Returns true if this character is upper case.