toUpperCase

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

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

actual 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

Warning since 1.5

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

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

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

Deprecated

Warning since 1.5

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
actual 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.3

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.3
actual 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.8

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.8
actual 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.8

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