isLowerCase

Returns true if the Unicode character corresponding to this code point is lower case.

A character is considered to be a lower case character if its category is CharCategory.LOWERCASE_LETTER, or it has contributory property Other_Lowercase as defined by the Unicode Standard.

Since Kotlin

2.5

Samples

import kotlin.text.unicode.*
import kotlin.test.*

fun main() { 
   //sampleStart 
   val codePoints = "1Aa+𐐀𐐨".asCodePointSequence()
val [lowerCases, notLowerCases] = codePoints.partition { it.isLowerCase() }
println(lowerCases) // [a, 𐐨]
println(notLowerCases) // [1, A, +, 𐐀] 
   //sampleEnd
}

Returns true if the Unicode character corresponding to this code point is lower case.

A character is considered to be a lower case character if its category is CharCategory.LOWERCASE_LETTER, or it has contributory property Other_Lowercase as defined by the Unicode Standard.

Since Kotlin

2.5

Samples

import kotlin.text.unicode.*
import kotlin.test.*

fun main() { 
   //sampleStart 
   val codePoints = "1Aa+𐐀𐐨".asCodePointSequence()
val [lowerCases, notLowerCases] = codePoints.partition { it.isLowerCase() }
println(lowerCases) // [a, 𐐨]
println(notLowerCases) // [1, A, +, 𐐀] 
   //sampleEnd
}