Platform and version requirements: JS (1.3)
fun capacity(): IntDeprecated: Obtaining StringBuilder capacity is not supported in JS and common code.
Platform and version requirements: Native (1.3)
fun capacity(): Int
For Common, Native
Returns the current capacity of this string builder.
The capacity is the maximum length this string builder can have before an allocation occurs.