Deprecate old CharArray to String conversion api #KT-31343

This commit is contained in:
Abduqodiri Qurbonzoda
2020-01-16 23:37:46 +03:00
parent 19855c5bd5
commit 6a2fed33d3
4 changed files with 12 additions and 5 deletions
@@ -78,6 +78,7 @@ expect fun Char.isLowSurrogate(): Boolean
* Converts the characters in the specified array to a string.
*/
@SinceKotlin("1.2")
@Deprecated("Use CharArray.concatToString() instead", ReplaceWith("chars.concatToString()"))
public expect fun String(chars: CharArray): String
/**
@@ -87,6 +88,7 @@ public expect fun String(chars: CharArray): String
* or `offset + length` is out of [chars] array bounds.
*/
@SinceKotlin("1.2")
@Deprecated("Use CharArray.concatToString(startIndex, endIndex) instead", ReplaceWith("chars.concatToString(offset, offset + length)"))
public expect fun String(chars: CharArray, offset: Int, length: Int): String
/**