Promote Common String.toCharArray(destination) to stable #KT-65532

This commit is contained in:
Abduqodiri Qurbonzoda
2024-02-15 19:27:07 +02:00
committed by Space Team
parent 2bd48b7e49
commit 31aa71dd6a
5 changed files with 5 additions and 10 deletions
@@ -386,8 +386,7 @@ public actual fun String.toCharArray(startIndex: Int = 0, endIndex: Int = this.l
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
* or when that index is out of the [destination] array indices range.
*/
@ExperimentalStdlibApi
@SinceKotlin("1.9")
@SinceKotlin("2.0")
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
public actual fun String.toCharArray(
destination: CharArray,
+1 -2
View File
@@ -1042,8 +1042,7 @@ public fun kotlin.String.toByteOrNull(radix: kotlin.Int): kotlin.Byte?
@kotlin.SinceKotlin(version = "1.4")
public fun kotlin.String.toCharArray(): kotlin.CharArray
@kotlin.ExperimentalStdlibApi
@kotlin.SinceKotlin(version = "1.9")
@kotlin.SinceKotlin(version = "2.0")
public fun kotlin.String.toCharArray(destination: kotlin.CharArray, destinationOffset: kotlin.Int = ..., startIndex: kotlin.Int = ..., endIndex: kotlin.Int = ...): kotlin.CharArray
@kotlin.SinceKotlin(version = "1.4")
+1 -2
View File
@@ -290,8 +290,7 @@ public expect fun String.toCharArray(startIndex: Int = 0, endIndex: Int = this.l
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
* or when that index is out of the [destination] array indices range.
*/
@ExperimentalStdlibApi
@SinceKotlin("1.9")
@SinceKotlin("2.0")
public expect fun String.toCharArray(
destination: CharArray,
destinationOffset: Int = 0,
@@ -108,8 +108,7 @@ public actual fun String.toCharArray(startIndex: Int = 0, endIndex: Int = this.l
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
* or when that index is out of the [destination] array indices range.
*/
@ExperimentalStdlibApi
@SinceKotlin("1.9")
@SinceKotlin("2.0")
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
public actual fun String.toCharArray(
destination: CharArray,
@@ -153,8 +153,7 @@ public actual fun String.toCharArray(startIndex: Int = 0, endIndex: Int = this.l
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
* or when that index is out of the [destination] array indices range.
*/
@ExperimentalStdlibApi
@SinceKotlin("1.9")
@SinceKotlin("2.0")
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
public actual fun String.toCharArray(
destination: CharArray,