lowercase
Converts this code point to lower case using Unicode mapping rules of the invariant locale.
This function supports one-to-many character mapping, thus the returned string can contain more than one code point. For example, CodePoint(0x0130).lowercase() returns "\u0069\u0307", where '\u0130' is the LATIN CAPITAL LETTER I WITH DOT ABOVE character (İ). If this code point has no lower case mapping, the result of toString() of this code point 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 supports one-to-many character mapping, thus the returned string can contain more than one code point. For example, CodePoint(0x0130).lowercase() returns "\u0069\u0307", where '\u0130' is the LATIN CAPITAL LETTER I WITH DOT ABOVE character (İ). If this code point has no lower case mapping, the result of toString() of this code point 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 supports one-to-many character mapping, thus the returned string can contain more than one code point. For example, CodePoint(0x0130).lowercase() returns "\u0069\u0307", where '\u0130' is the LATIN CAPITAL LETTER I WITH DOT ABOVE character (İ). If this code point has no lower case mapping, the result of toString() of this code point 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 supports one-to-many character mapping, thus the returned string can contain more than one code point. For example, CodePoint(0x0130).lowercase() returns "\u0069\u0307", where '\u0130' is the LATIN CAPITAL LETTER I WITH DOT ABOVE character (İ). If this code point has no lower case mapping, the result of toString() of this code point 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 supports one-to-many character mapping, thus the returned string can contain more than one code point. For example, CodePoint(0x0130).lowercase() returns "\u0069\u0307", where '\u0130' is the LATIN CAPITAL LETTER I WITH DOT ABOVE character (İ). If this code point has no lower case mapping, the result of toString() of this code point 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 supports one-to-many character mapping, thus the returned string can contain more than one code point. For example, CodePoint(0x0130).lowercase() returns "\u0069\u0307", where '\u0130' is the LATIN CAPITAL LETTER I WITH DOT ABOVE character (İ). If this code point has no lower case mapping, the result of toString() of this code point 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
}