capacity

expect fun capacity(): Int(source)

Returns the current capacity of this string builder.

The capacity is the maximum length this string builder can have before an allocation occurs.

In Kotlin/JS implementation of StringBuilder the value returned from this method may not indicate the actual size of the backing storage.

Since Kotlin

1.3
actual fun capacity(): Int(source)

Deprecated

Obtaining StringBuilder capacity is not supported in JS and common code.

Returns the current capacity of this string builder.

The capacity is the maximum length this string builder can have before an allocation occurs.

In Kotlin/JS implementation of StringBuilder the value returned from this method may not indicate the actual size of the backing storage.

Since Kotlin

1.3
actual fun capacity(): Int(source)

Returns the current capacity of this string builder.

The capacity is the maximum length this string builder can have before an allocation occurs.

Since Kotlin

1.3
actual fun capacity(): Int(source)

Returns the current capacity of this string builder.

The capacity is the maximum length this string builder can have before an allocation occurs.

Since Kotlin

1.8
actual fun capacity(): Int(source)

Returns the current capacity of this string builder.

The capacity is the maximum length this string builder can have before an allocation occurs.

Since Kotlin

1.8