All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kotlin.text.StringsJVM1.2.kt Maven / Gradle / Ivy

There is a newer version: 4.12.5
Show newest version
// Implement the new post-1.2 APIs which are used by core and serialization
@file:Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN", "NOTHING_TO_INLINE", "unused")

package kotlin.text

import java.util.Locale

// String extensions
inline fun String.lowercase(): String = (this as java.lang.String).toLowerCase(Locale.ROOT)
inline fun String.lowercase(locale: Locale): String = (this as java.lang.String).toLowerCase(locale)
inline fun String.uppercase(): String = (this as java.lang.String).toUpperCase(Locale.ROOT)
inline fun String.uppercase(locale: Locale): String = (this as java.lang.String).toUpperCase(locale)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy