Postpone introducing common StringBuilder.capacity() function
Its support complicates JS StringBuilder implementation with no actual performance improvements. Benefits of having capacity() function in common code are also not completely clear. Relates to KT-33069 #KT-40168
This commit is contained in:
@@ -1275,8 +1275,8 @@ public final class StringBuilder : kotlin.text.Appendable, kotlin.CharSequence {
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun appendRange(value: kotlin.CharSequence, startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
@kotlin.Deprecated(level = DeprecationLevel.ERROR, message = "Obtaining StringBuilder capacity is not supported in JS and common code.")
|
||||
public final fun capacity(): kotlin.Int
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
|
||||
Reference in New Issue
Block a user