buildString

inline fun buildString(
    builderAction: StringBuilder.() -> Unit
): String
(source)

Platform and version requirements: JVM

inline fun buildString(
    builderAction: StringBuilder.() -> Unit
): String
(source)

Platform and version requirements: JS

Builds new string by populating newly created StringBuilder using provided builderAction and then converting it to String.

inline fun buildString(
    capacity: Int,
    builderAction: StringBuilder.() -> Unit
): String
(source)

Platform and version requirements: Kotlin 1.1, JVM

inline fun buildString(
    capacity: Int,
    builderAction: StringBuilder.() -> Unit
): String
(source)

Platform and version requirements: Kotlin 1.1, JS

Builds new string by populating newly created StringBuilder initialized with the given capacity using provided builderAction and then converting it to String.