ensureCapacity

actual fun ensureCapacity(minimumCapacity: Int)(source)

Ensures that the capacity of this string builder is at least equal to the specified minimumCapacity.

If the current capacity is less than the minimumCapacity, a new backing storage is allocated with greater capacity. Otherwise, this method takes no action and simply returns.

Since Kotlin

1.3