uppercaseChar
Converts this character 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 character has no mapping equivalent, the character itself is returned.
Since Kotlin
1.5Samples
import java.util.*
import kotlin.test.*
fun main() {
//sampleStart
val chars = listOf('a', 'Ο', '1', 'Ε', 'A', '+', 'Γ')
val uppercaseChar = chars.map { it.uppercaseChar() }
val uppercase = chars.map { it.uppercase() }
println(uppercaseChar) // [A, Ξ©, 1, Ε, A, +, Γ]
println(uppercase) // [A, Ξ©, 1, ΚΌN, A, +, SS]
//sampleEnd
}
Converts this character 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 character has no mapping equivalent, the character itself is returned.
Since Kotlin
1.5Samples
import java.util.*
import kotlin.test.*
fun main() {
//sampleStart
val chars = listOf('a', 'Ο', '1', 'Ε', 'A', '+', 'Γ')
val uppercaseChar = chars.map { it.uppercaseChar() }
val uppercase = chars.map { it.uppercase() }
println(uppercaseChar) // [A, Ξ©, 1, Ε, A, +, Γ]
println(uppercase) // [A, Ξ©, 1, ΚΌN, A, +, SS]
//sampleEnd
}
Converts this character 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 character has no mapping equivalent, the character itself is returned.
Since Kotlin
1.5Samples
import java.util.*
import kotlin.test.*
fun main() {
//sampleStart
val chars = listOf('a', 'Ο', '1', 'Ε', 'A', '+', 'Γ')
val uppercaseChar = chars.map { it.uppercaseChar() }
val uppercase = chars.map { it.uppercase() }
println(uppercaseChar) // [A, Ξ©, 1, Ε, A, +, Γ]
println(uppercase) // [A, Ξ©, 1, ΚΌN, A, +, SS]
//sampleEnd
}
Converts this character 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 character has no mapping equivalent, the character itself is returned.
Since Kotlin
1.5Samples
import java.util.*
import kotlin.test.*
fun main() {
//sampleStart
val chars = listOf('a', 'Ο', '1', 'Ε', 'A', '+', 'Γ')
val uppercaseChar = chars.map { it.uppercaseChar() }
val uppercase = chars.map { it.uppercase() }
println(uppercaseChar) // [A, Ξ©, 1, Ε, A, +, Γ]
println(uppercase) // [A, Ξ©, 1, ΚΌN, A, +, SS]
//sampleEnd
}