toUpperCase

expect inline fun Char.toUpperCase(): Char(source)

Deprecated

Warning since 1.5

Use uppercaseChar() instead.

Replace with

uppercaseChar()

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

Since Kotlin

1.1

expect inline fun String.toUpperCase(): String(source)

Deprecated

Warning since 1.5

Use uppercase() instead.

Replace with

uppercase()

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

Since Kotlin

1.1
inline fun String.toUpperCase(locale: Locale): String(source)

Deprecated

Use uppercase() instead.

Replace with

uppercase(locale)

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

Since Kotlin

1.0

expect inline fun Char.toUpperCase(): Char(source)

Deprecated

Use uppercaseChar() instead.

Replace with

uppercaseChar()

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

Since Kotlin

1.0

expect inline fun String.toUpperCase(): String(source)

Deprecated

Use uppercase() instead.

Replace with

import java.util.Locale
uppercase(Locale.getDefault())

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

Since Kotlin

1.0