Companion

Since Kotlin

1.0

Since Kotlin

1.1

Extensions

Link copied to clipboard
inline fun String.Companion.format(format: String, vararg args: Any?): String
inline fun String.Companion.format(format: String, vararg args: Any?): String

Uses the provided format as a format string and returns a string obtained by substituting the specified arguments, using the default locale.

Since Kotlin 1.0
inline fun String.Companion.format(locale: Locale, format: String, vararg args: Any?): String
inline fun String.Companion.format(locale: Locale, format: String, vararg args: Any?): String

Uses the provided format as a format string and returns a string obtained by substituting the specified arguments, using the specified locale.

Since Kotlin 1.0