toUpperCase

actual inline fun Char.toUpperCase(): Char(source)(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

actual inline fun String.toUpperCase(): String(source)(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

Deprecated

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.0

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