lowercaseCodePoint
Converts this code point to lower case using Unicode mapping rules of the invariant locale.
This function performs one-to-one character mapping. To support one-to-many character mapping, use the lowercase function. If this code point has no lower case equivalent, the code point itself is returned.
Since Kotlin
2.5Samples
import kotlin.text.unicode.*
import kotlin.test.*
fun main() {
//sampleStart
val codePoints = "AΞ©1a+Δ°π".asCodePointSequence()
val lowercaseCodePoints = codePoints.map { it.lowercaseCodePoint() }.toList()
val lowercase = codePoints.map { it.lowercase() }.toList()
println(lowercaseCodePoints) // [a, Ο, 1, a, +, i, π¨]
println(lowercase) // [a, Ο, 1, a, +, \u0069\u0307, π¨]
//sampleEnd
}Converts this code point to lower case using Unicode mapping rules of the invariant locale.
This function performs one-to-one character mapping. To support one-to-many character mapping, use the lowercase function. If this code point has no lower case equivalent, the code point itself is returned.
Since Kotlin
2.5Samples
import kotlin.text.unicode.*
import kotlin.test.*
fun main() {
//sampleStart
val codePoints = "AΞ©1a+Δ°π".asCodePointSequence()
val lowercaseCodePoints = codePoints.map { it.lowercaseCodePoint() }.toList()
val lowercase = codePoints.map { it.lowercase() }.toList()
println(lowercaseCodePoints) // [a, Ο, 1, a, +, i, π¨]
println(lowercase) // [a, Ο, 1, a, +, \u0069\u0307, π¨]
//sampleEnd
}Converts this code point to lower case using Unicode mapping rules of the invariant locale.
This function performs one-to-one character mapping. To support one-to-many character mapping, use the lowercase function. If this code point has no lower case equivalent, the code point itself is returned.
Since Kotlin
2.5Samples
import kotlin.text.unicode.*
import kotlin.test.*
fun main() {
//sampleStart
val codePoints = "AΞ©1a+Δ°π".asCodePointSequence()
val lowercaseCodePoints = codePoints.map { it.lowercaseCodePoint() }.toList()
val lowercase = codePoints.map { it.lowercase() }.toList()
println(lowercaseCodePoints) // [a, Ο, 1, a, +, i, π¨]
println(lowercase) // [a, Ο, 1, a, +, \u0069\u0307, π¨]
//sampleEnd
}Converts this code point to lower case using Unicode mapping rules of the invariant locale.
This function performs one-to-one character mapping. To support one-to-many character mapping, use the lowercase function. If this code point has no lower case equivalent, the code point itself is returned.
Since Kotlin
2.5Samples
import kotlin.text.unicode.*
import kotlin.test.*
fun main() {
//sampleStart
val codePoints = "AΞ©1a+Δ°π".asCodePointSequence()
val lowercaseCodePoints = codePoints.map { it.lowercaseCodePoint() }.toList()
val lowercase = codePoints.map { it.lowercase() }.toList()
println(lowercaseCodePoints) // [a, Ο, 1, a, +, i, π¨]
println(lowercase) // [a, Ο, 1, a, +, \u0069\u0307, π¨]
//sampleEnd
}Converts this code point to lower case using Unicode mapping rules of the invariant locale.
This function performs one-to-one character mapping. To support one-to-many character mapping, use the lowercase function. If this code point has no lower case equivalent, the code point itself is returned.
Since Kotlin
2.5Samples
import kotlin.text.unicode.*
import kotlin.test.*
fun main() {
//sampleStart
val codePoints = "AΞ©1a+Δ°π".asCodePointSequence()
val lowercaseCodePoints = codePoints.map { it.lowercaseCodePoint() }.toList()
val lowercase = codePoints.map { it.lowercase() }.toList()
println(lowercaseCodePoints) // [a, Ο, 1, a, +, i, π¨]
println(lowercase) // [a, Ο, 1, a, +, \u0069\u0307, π¨]
//sampleEnd
}Converts this code point to lower case using Unicode mapping rules of the invariant locale.
This function performs one-to-one character mapping. To support one-to-many character mapping, use the lowercase function. If this code point has no lower case equivalent, the code point itself is returned.
Since Kotlin
2.5Samples
import kotlin.text.unicode.*
import kotlin.test.*
fun main() {
//sampleStart
val codePoints = "AΞ©1a+Δ°π".asCodePointSequence()
val lowercaseCodePoints = codePoints.map { it.lowercaseCodePoint() }.toList()
val lowercase = codePoints.map { it.lowercase() }.toList()
println(lowercaseCodePoints) // [a, Ο, 1, a, +, i, π¨]
println(lowercase) // [a, Ο, 1, a, +, \u0069\u0307, π¨]
//sampleEnd
}