kotlin / 1.7.0 / api / latest / jvm / stdlib / kotlin.text / to-upper-case.html /

toUpperCase

Platform and version requirements: JVM (1.0), JS (1.0)
@DeprecatedSinceKotlin("1.5") fun Char.toUpperCase(): Char
Deprecated: Use uppercaseChar() instead.

Converts this character to upper case using Unicode mapping rules of the invariant locale.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
@DeprecatedSinceKotlin("1.5") fun String.toUpperCase(): String
Deprecated: Use uppercase() instead.

Returns a copy of this string converted to upper case using the rules of the default locale.

Platform and version requirements: JVM (1.0)
@DeprecatedSinceKotlin("1.5") fun String.toUpperCase(
    locale: Locale
): String
Deprecated: Use uppercase() instead.

Returns a copy of this string converted to upper case using the rules of the specified locale.

© 2010–2022 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/to-upper-case.html