doc / ch.tutteli.atrium.core.polyfills / kotlin.String

Extensions for kotlin.String

format

expect fun String.format(locale: Locale, arg: Any, vararg otherArgs: Any): String

Formats this String based on the given locale and using the given arg and otherArgs for replacements.

expect fun String.format(arg: Any, vararg otherArgs: Any): String

Formats this String using the given arg and otherArgs for replacements where a predefined Locale is used.