uppercaseCodePoint
Converts this code point to upper 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 uppercase function. If this code point has no upper 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ω1ʼnA+ß𐐨".asCodePointSequence()
val uppercaseCodePoints = codePoints.map { it.uppercaseCodePoint() }.toList()
val uppercase = codePoints.map { it.uppercase() }.toList()
println(uppercaseCodePoints) // [A, Ω, 1, ʼn, A, +, ß, 𐐀]
println(uppercase) // [A, Ω, 1, ʼN, A, +, SS, 𐐀]
//sampleEnd
}Converts this code point to upper 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 uppercase function. If this code point has no upper 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ω1ʼnA+ß𐐨".asCodePointSequence()
val uppercaseCodePoints = codePoints.map { it.uppercaseCodePoint() }.toList()
val uppercase = codePoints.map { it.uppercase() }.toList()
println(uppercaseCodePoints) // [A, Ω, 1, ʼn, A, +, ß, 𐐀]
println(uppercase) // [A, Ω, 1, ʼN, A, +, SS, 𐐀]
//sampleEnd
}Converts this code point to upper 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 uppercase function. If this code point has no upper 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ω1ʼnA+ß𐐨".asCodePointSequence()
val uppercaseCodePoints = codePoints.map { it.uppercaseCodePoint() }.toList()
val uppercase = codePoints.map { it.uppercase() }.toList()
println(uppercaseCodePoints) // [A, Ω, 1, ʼn, A, +, ß, 𐐀]
println(uppercase) // [A, Ω, 1, ʼN, A, +, SS, 𐐀]
//sampleEnd
}Converts this code point to upper 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 uppercase function. If this code point has no upper 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ω1ʼnA+ß𐐨".asCodePointSequence()
val uppercaseCodePoints = codePoints.map { it.uppercaseCodePoint() }.toList()
val uppercase = codePoints.map { it.uppercase() }.toList()
println(uppercaseCodePoints) // [A, Ω, 1, ʼn, A, +, ß, 𐐀]
println(uppercase) // [A, Ω, 1, ʼN, A, +, SS, 𐐀]
//sampleEnd
}Converts this code point to upper 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 uppercase function. If this code point has no upper 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ω1ʼnA+ß𐐨".asCodePointSequence()
val uppercaseCodePoints = codePoints.map { it.uppercaseCodePoint() }.toList()
val uppercase = codePoints.map { it.uppercase() }.toList()
println(uppercaseCodePoints) // [A, Ω, 1, ʼn, A, +, ß, 𐐀]
println(uppercase) // [A, Ω, 1, ʼN, A, +, SS, 𐐀]
//sampleEnd
}Converts this code point to upper 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 uppercase function. If this code point has no upper 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ω1ʼnA+ß𐐨".asCodePointSequence()
val uppercaseCodePoints = codePoints.map { it.uppercaseCodePoint() }.toList()
val uppercase = codePoints.map { it.uppercase() }.toList()
println(uppercaseCodePoints) // [A, Ω, 1, ʼn, A, +, ß, 𐐀]
println(uppercase) // [A, Ω, 1, ʼN, A, +, SS, 𐐀]
//sampleEnd
}