toUpperCase

Common
JVM
JS
Native
1.0
@DeprecatedSinceKotlin("1.5") fun Char.toUpperCase(): Char
(Common source) (JVM source) (JS source) (Native source)
Deprecated: Use uppercaseChar() instead.

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

Common
JVM
JS
Native
1.0
@DeprecatedSinceKotlin("1.5") fun String.toUpperCase(): String
(Common source) (JVM source) (JS source) (Native source)
Deprecated: Use uppercase() instead.

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

JVM
1.0
@DeprecatedSinceKotlin("1.5") fun String.toUpperCase(
    locale: Locale
): String

(source)
Deprecated: Use uppercase() instead.

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