toUpperCase

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

Converts this character to uppercase.

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

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



fun main(args: Array<String>) {
//sampleStart
println("Iced frappé!".toUpperCase()) // ICED FRAPPÉ!
//sampleEnd
}
inline fun String.toUpperCase(locale: Locale): String (source)

Platform and version requirements: JVM

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