Deprecate old CharArray to String conversion api #KT-31343
This commit is contained in:
@@ -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
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user