W3cubDocs

/Kotlin

format

inline fun String.format(vararg args: Any?): String

Platform and version requirements: JVM

inline fun String.Companion.format(
    format: String, 
    vararg args: Any?
): String

Platform and version requirements: JVM

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

Platform and version requirements: JVM

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

inline fun String.format(
    locale: Locale, 
    vararg args: Any?
): String

Platform and version requirements: JVM

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

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/format.html