Introduce a deprecated StringBuilder.append(CharArray, Int, Int) in Common #KT-52336

This commit is contained in:
Abduqodiri Qurbonzoda
2022-09-08 14:34:38 +00:00
committed by Space
parent faedd76b32
commit 0db9326105
5 changed files with 52 additions and 0 deletions
@@ -437,6 +437,12 @@ public fun StringBuilder.append(vararg value: Any?): StringBuilder {
return this
}
// KT-52336
@Deprecated("Use appendRange instead.", ReplaceWith("this.appendRange(str, offset, offset + len)"), level = DeprecationLevel.ERROR)
@kotlin.internal.InlineOnly
@Suppress("UNUSED_PARAMETER")
public inline fun StringBuilder.append(str: CharArray, offset: Int, len: Int): StringBuilder = throw NotImplementedError()
/** Appends a line feed character (`\n`) to this StringBuilder. */
@SinceKotlin("1.4")
@kotlin.internal.InlineOnly