Clean up WasExperimental annotation from declarations with SinceKotlin<=1.4
Since it is not possible to use -api-version < 1.4, this annotation has no effect
This commit is contained in:
committed by
Space Team
parent
081e1de5af
commit
9ccce52915
@@ -109,7 +109,6 @@ internal external fun fromBits(bits: Int): Float
|
||||
* Counts the number of set bits in the binary representation of this [Int] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@GCUnsafeCall("Kotlin_Int_countOneBits")
|
||||
public actual external fun Int.countOneBits(): Int
|
||||
|
||||
@@ -124,7 +123,6 @@ private external fun countLeadingZeroBits(value: Int): Int
|
||||
* Counts the number of consecutive most significant bits that are zero in the binary representation of this [Int] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Int.countLeadingZeroBits(): Int =
|
||||
if (this == 0) 32 else countLeadingZeroBits(this)
|
||||
|
||||
@@ -139,7 +137,6 @@ private external fun countTrailingZeroBits(value: Int): Int
|
||||
* Counts the number of consecutive least significant bits that are zero in the binary representation of this [Int] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Int.countTrailingZeroBits(): Int =
|
||||
if (this == 0) 32 else countTrailingZeroBits(this)
|
||||
|
||||
@@ -148,7 +145,6 @@ public actual fun Int.countTrailingZeroBits(): Int =
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Int.takeHighestOneBit(): Int =
|
||||
if (this == 0) 0 else 1.shl(32 - 1 - countLeadingZeroBits(this))
|
||||
|
||||
@@ -157,7 +153,6 @@ public actual fun Int.takeHighestOneBit(): Int =
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Int.takeLowestOneBit(): Int =
|
||||
this and -this
|
||||
|
||||
@@ -197,7 +192,6 @@ public actual fun Int.rotateRight(bitCount: Int): Int =
|
||||
* Counts the number of set bits in the binary representation of this [Long] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@GCUnsafeCall("Kotlin_Long_countOneBits")
|
||||
public actual external fun Long.countOneBits(): Int
|
||||
|
||||
@@ -212,7 +206,6 @@ private external fun countLeadingZeroBits(value: Long): Int
|
||||
* Counts the number of consecutive most significant bits that are zero in the binary representation of this [Long] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Long.countLeadingZeroBits(): Int =
|
||||
if (this == 0L) 64 else countLeadingZeroBits(this)
|
||||
|
||||
@@ -227,7 +220,6 @@ private external fun countTrailingZeroBits(value: Long): Int
|
||||
* Counts the number of consecutive least significant bits that are zero in the binary representation of this [Long] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Long.countTrailingZeroBits(): Int =
|
||||
if (this == 0L) 64 else countTrailingZeroBits(this)
|
||||
|
||||
@@ -236,7 +228,6 @@ public actual fun Long.countTrailingZeroBits(): Int =
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Long.takeHighestOneBit(): Long =
|
||||
if (this == 0L) 0L else 1L.shl(64 - 1 - countLeadingZeroBits(this))
|
||||
|
||||
@@ -245,7 +236,6 @@ public actual fun Long.takeHighestOneBit(): Long =
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Long.takeLowestOneBit(): Long =
|
||||
this and -this
|
||||
|
||||
|
||||
@@ -6540,137 +6540,109 @@ public inline fun <T> kotlin.collections.Collection<T>.random(): T
|
||||
public fun <T> kotlin.collections.Collection<T>.random(random: kotlin.random.Random): T
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <T> kotlin.Array<out T>.randomOrNull(): T?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun <T> kotlin.Array<out T>.randomOrNull(random: kotlin.random.Random): T?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.BooleanArray.randomOrNull(): kotlin.Boolean?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.BooleanArray.randomOrNull(random: kotlin.random.Random): kotlin.Boolean?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.ByteArray.randomOrNull(): kotlin.Byte?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.ByteArray.randomOrNull(random: kotlin.random.Random): kotlin.Byte?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.CharArray.randomOrNull(): kotlin.Char?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.CharArray.randomOrNull(random: kotlin.random.Random): kotlin.Char?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.DoubleArray.randomOrNull(): kotlin.Double?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.DoubleArray.randomOrNull(random: kotlin.random.Random): kotlin.Double?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.FloatArray.randomOrNull(): kotlin.Float?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.FloatArray.randomOrNull(random: kotlin.random.Random): kotlin.Float?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.IntArray.randomOrNull(): kotlin.Int?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.IntArray.randomOrNull(random: kotlin.random.Random): kotlin.Int?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.LongArray.randomOrNull(): kotlin.Long?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.LongArray.randomOrNull(random: kotlin.random.Random): kotlin.Long?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.ShortArray.randomOrNull(): kotlin.Short?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.ShortArray.randomOrNull(random: kotlin.random.Random): kotlin.Short?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.UByteArray.randomOrNull(): kotlin.UByte?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.UByteArray.randomOrNull(random: kotlin.random.Random): kotlin.UByte?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.UIntArray.randomOrNull(): kotlin.UInt?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.UIntArray.randomOrNull(random: kotlin.random.Random): kotlin.UInt?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.ULongArray.randomOrNull(): kotlin.ULong?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.ULongArray.randomOrNull(random: kotlin.random.Random): kotlin.ULong?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.UShortArray.randomOrNull(): kotlin.UShort?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.UShortArray.randomOrNull(random: kotlin.random.Random): kotlin.UShort?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <T> kotlin.collections.Collection<T>.randomOrNull(): T?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun <T> kotlin.collections.Collection<T>.randomOrNull(random: kotlin.random.Random): T?
|
||||
|
||||
public inline fun <S, T : S> kotlin.Array<out T>.reduce(operation: (acc: S, T) -> S): S
|
||||
@@ -6807,67 +6779,53 @@ public inline fun kotlin.UShortArray.reduceIndexedOrNull(operation: (index: kotl
|
||||
public inline fun <S, T : S> kotlin.collections.Iterable<T>.reduceIndexedOrNull(operation: (index: kotlin.Int, acc: S, T) -> S): S?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun <S, T : S> kotlin.Array<out T>.reduceOrNull(operation: (acc: S, T) -> S): S?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.BooleanArray.reduceOrNull(operation: (acc: kotlin.Boolean, kotlin.Boolean) -> kotlin.Boolean): kotlin.Boolean?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.ByteArray.reduceOrNull(operation: (acc: kotlin.Byte, kotlin.Byte) -> kotlin.Byte): kotlin.Byte?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.CharArray.reduceOrNull(operation: (acc: kotlin.Char, kotlin.Char) -> kotlin.Char): kotlin.Char?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.DoubleArray.reduceOrNull(operation: (acc: kotlin.Double, kotlin.Double) -> kotlin.Double): kotlin.Double?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.FloatArray.reduceOrNull(operation: (acc: kotlin.Float, kotlin.Float) -> kotlin.Float): kotlin.Float?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.IntArray.reduceOrNull(operation: (acc: kotlin.Int, kotlin.Int) -> kotlin.Int): kotlin.Int?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.LongArray.reduceOrNull(operation: (acc: kotlin.Long, kotlin.Long) -> kotlin.Long): kotlin.Long?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.ShortArray.reduceOrNull(operation: (acc: kotlin.Short, kotlin.Short) -> kotlin.Short): kotlin.Short?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.UByteArray.reduceOrNull(operation: (acc: kotlin.UByte, kotlin.UByte) -> kotlin.UByte): kotlin.UByte?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.UIntArray.reduceOrNull(operation: (acc: kotlin.UInt, kotlin.UInt) -> kotlin.UInt): kotlin.UInt?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.ULongArray.reduceOrNull(operation: (acc: kotlin.ULong, kotlin.ULong) -> kotlin.ULong): kotlin.ULong?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.UShortArray.reduceOrNull(operation: (acc: kotlin.UShort, kotlin.UShort) -> kotlin.UShort): kotlin.UShort?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun <S, T : S> kotlin.collections.Iterable<T>.reduceOrNull(operation: (acc: S, T) -> S): S?
|
||||
|
||||
public inline fun <S, T : S> kotlin.Array<out T>.reduceRight(operation: (T, acc: S) -> S): S
|
||||
@@ -7001,67 +6959,53 @@ public inline fun kotlin.UShortArray.reduceRightIndexedOrNull(operation: (index:
|
||||
public inline fun <S, T : S> kotlin.collections.List<T>.reduceRightIndexedOrNull(operation: (index: kotlin.Int, T, acc: S) -> S): S?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun <S, T : S> kotlin.Array<out T>.reduceRightOrNull(operation: (T, acc: S) -> S): S?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.BooleanArray.reduceRightOrNull(operation: (kotlin.Boolean, acc: kotlin.Boolean) -> kotlin.Boolean): kotlin.Boolean?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.ByteArray.reduceRightOrNull(operation: (kotlin.Byte, acc: kotlin.Byte) -> kotlin.Byte): kotlin.Byte?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.CharArray.reduceRightOrNull(operation: (kotlin.Char, acc: kotlin.Char) -> kotlin.Char): kotlin.Char?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.DoubleArray.reduceRightOrNull(operation: (kotlin.Double, acc: kotlin.Double) -> kotlin.Double): kotlin.Double?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.FloatArray.reduceRightOrNull(operation: (kotlin.Float, acc: kotlin.Float) -> kotlin.Float): kotlin.Float?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.IntArray.reduceRightOrNull(operation: (kotlin.Int, acc: kotlin.Int) -> kotlin.Int): kotlin.Int?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.LongArray.reduceRightOrNull(operation: (kotlin.Long, acc: kotlin.Long) -> kotlin.Long): kotlin.Long?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.ShortArray.reduceRightOrNull(operation: (kotlin.Short, acc: kotlin.Short) -> kotlin.Short): kotlin.Short?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.UByteArray.reduceRightOrNull(operation: (kotlin.UByte, acc: kotlin.UByte) -> kotlin.UByte): kotlin.UByte?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.UIntArray.reduceRightOrNull(operation: (kotlin.UInt, acc: kotlin.UInt) -> kotlin.UInt): kotlin.UInt?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.ULongArray.reduceRightOrNull(operation: (kotlin.ULong, acc: kotlin.ULong) -> kotlin.ULong): kotlin.ULong?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.UShortArray.reduceRightOrNull(operation: (kotlin.UShort, acc: kotlin.UShort) -> kotlin.UShort): kotlin.UShort?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun <S, T : S> kotlin.collections.List<T>.reduceRightOrNull(operation: (T, acc: S) -> S): S?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.1")
|
||||
@@ -7094,19 +7038,15 @@ public fun <T> kotlin.collections.MutableIterable<T>.removeAll(predicate: (T) ->
|
||||
public fun <T> kotlin.collections.MutableList<T>.removeAll(predicate: (T) -> kotlin.Boolean): kotlin.Boolean
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun <T> kotlin.collections.MutableList<T>.removeFirst(): T
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun <T> kotlin.collections.MutableList<T>.removeFirstOrNull(): T?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun <T> kotlin.collections.MutableList<T>.removeLast(): T
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun <T> kotlin.collections.MutableList<T>.removeLastOrNull(): T?
|
||||
|
||||
public fun <T : kotlin.Any> kotlin.Array<T?>.requireNoNulls(): kotlin.Array<T>
|
||||
@@ -7407,7 +7347,6 @@ public inline fun <R> kotlin.UShortArray.runningFoldIndexed(initial: R, operatio
|
||||
public inline fun <T, R> kotlin.collections.Iterable<T>.runningFoldIndexed(initial: R, operation: (index: kotlin.Int, acc: R, T) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun <S, T : S> kotlin.Array<out T>.runningReduce(operation: (acc: S, T) -> S): kotlin.collections.List<S>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@@ -7463,7 +7402,6 @@ public inline fun kotlin.ULongArray.runningReduce(operation: (acc: kotlin.ULong,
|
||||
public inline fun kotlin.UShortArray.runningReduce(operation: (acc: kotlin.UShort, kotlin.UShort) -> kotlin.UShort): kotlin.collections.List<kotlin.UShort>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun <S, T : S> kotlin.collections.Iterable<T>.runningReduce(operation: (acc: S, T) -> S): kotlin.collections.List<S>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@@ -7525,147 +7463,119 @@ public inline fun kotlin.UShortArray.runningReduceIndexed(operation: (index: kot
|
||||
public inline fun <S, T : S> kotlin.collections.Iterable<T>.runningReduceIndexed(operation: (index: kotlin.Int, acc: S, T) -> S): kotlin.collections.List<S>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun <T, R> kotlin.Array<out T>.scan(initial: R, operation: (acc: R, T) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.BooleanArray.scan(initial: R, operation: (acc: R, kotlin.Boolean) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.ByteArray.scan(initial: R, operation: (acc: R, kotlin.Byte) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.CharArray.scan(initial: R, operation: (acc: R, kotlin.Char) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.DoubleArray.scan(initial: R, operation: (acc: R, kotlin.Double) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.FloatArray.scan(initial: R, operation: (acc: R, kotlin.Float) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.IntArray.scan(initial: R, operation: (acc: R, kotlin.Int) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.LongArray.scan(initial: R, operation: (acc: R, kotlin.Long) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.ShortArray.scan(initial: R, operation: (acc: R, kotlin.Short) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.UByteArray.scan(initial: R, operation: (acc: R, kotlin.UByte) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.UIntArray.scan(initial: R, operation: (acc: R, kotlin.UInt) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.ULongArray.scan(initial: R, operation: (acc: R, kotlin.ULong) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.UShortArray.scan(initial: R, operation: (acc: R, kotlin.UShort) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun <T, R> kotlin.collections.Iterable<T>.scan(initial: R, operation: (acc: R, T) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun <T, R> kotlin.Array<out T>.scanIndexed(initial: R, operation: (index: kotlin.Int, acc: R, T) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.BooleanArray.scanIndexed(initial: R, operation: (index: kotlin.Int, acc: R, kotlin.Boolean) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.ByteArray.scanIndexed(initial: R, operation: (index: kotlin.Int, acc: R, kotlin.Byte) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.CharArray.scanIndexed(initial: R, operation: (index: kotlin.Int, acc: R, kotlin.Char) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.DoubleArray.scanIndexed(initial: R, operation: (index: kotlin.Int, acc: R, kotlin.Double) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.FloatArray.scanIndexed(initial: R, operation: (index: kotlin.Int, acc: R, kotlin.Float) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.IntArray.scanIndexed(initial: R, operation: (index: kotlin.Int, acc: R, kotlin.Int) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.LongArray.scanIndexed(initial: R, operation: (index: kotlin.Int, acc: R, kotlin.Long) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.ShortArray.scanIndexed(initial: R, operation: (index: kotlin.Int, acc: R, kotlin.Short) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.UByteArray.scanIndexed(initial: R, operation: (index: kotlin.Int, acc: R, kotlin.UByte) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.UIntArray.scanIndexed(initial: R, operation: (index: kotlin.Int, acc: R, kotlin.UInt) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.ULongArray.scanIndexed(initial: R, operation: (index: kotlin.Int, acc: R, kotlin.ULong) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.ExperimentalUnsignedTypes
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> kotlin.UShortArray.scanIndexed(initial: R, operation: (index: kotlin.Int, acc: R, kotlin.UShort) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun <T, R> kotlin.collections.Iterable<T>.scanIndexed(initial: R, operation: (index: kotlin.Int, acc: R, T) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
@@ -10120,7 +10030,6 @@ public abstract class AbstractSet<out E> : kotlin.collections.AbstractCollection
|
||||
}
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final class ArrayDeque<E> : kotlin.collections.AbstractMutableList<E> {
|
||||
public constructor ArrayDeque<E>()
|
||||
|
||||
|
||||
@@ -165,21 +165,17 @@ public inline fun <T> T.apply(block: T.() -> kotlin.Unit): T
|
||||
public inline infix fun <T> kotlin.Comparable<T>.compareTo(other: T): kotlin.Int
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.Byte.countLeadingZeroBits(): kotlin.Int
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.Int.countLeadingZeroBits(): kotlin.Int
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.Long.countLeadingZeroBits(): kotlin.Int
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.Short.countLeadingZeroBits(): kotlin.Int
|
||||
|
||||
@@ -204,20 +200,16 @@ public inline fun kotlin.ULong.countLeadingZeroBits(): kotlin.Int
|
||||
public inline fun kotlin.UShort.countLeadingZeroBits(): kotlin.Int
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.Byte.countOneBits(): kotlin.Int
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.Int.countOneBits(): kotlin.Int
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.Long.countOneBits(): kotlin.Int
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.Short.countOneBits(): kotlin.Int
|
||||
|
||||
@@ -242,20 +234,16 @@ public inline fun kotlin.ULong.countOneBits(): kotlin.Int
|
||||
public inline fun kotlin.UShort.countOneBits(): kotlin.Int
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.Byte.countTrailingZeroBits(): kotlin.Int
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.Int.countTrailingZeroBits(): kotlin.Int
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.Long.countTrailingZeroBits(): kotlin.Int
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.Short.countTrailingZeroBits(): kotlin.Int
|
||||
|
||||
@@ -638,20 +626,16 @@ public inline operator fun <T, V> kotlin.reflect.KMutableProperty1<T, V>.setValu
|
||||
public fun kotlin.Throwable.stackTraceToString(): kotlin.String
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.Byte.takeHighestOneBit(): kotlin.Byte
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.Int.takeHighestOneBit(): kotlin.Int
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.Long.takeHighestOneBit(): kotlin.Long
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.Short.takeHighestOneBit(): kotlin.Short
|
||||
|
||||
@@ -680,20 +664,16 @@ public inline fun kotlin.UShort.takeHighestOneBit(): kotlin.UShort
|
||||
public inline fun <T> T.takeIf(predicate: (T) -> kotlin.Boolean): T?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.Byte.takeLowestOneBit(): kotlin.Byte
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.Int.takeLowestOneBit(): kotlin.Int
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.Long.takeLowestOneBit(): kotlin.Long
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.Short.takeLowestOneBit(): kotlin.Short
|
||||
|
||||
|
||||
@@ -515,30 +515,24 @@ public inline fun kotlin.ranges.ULongRange.random(): kotlin.ULong
|
||||
public fun kotlin.ranges.ULongRange.random(random: kotlin.random.Random): kotlin.ULong
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.ranges.CharRange.randomOrNull(): kotlin.Char?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.ranges.CharRange.randomOrNull(random: kotlin.random.Random): kotlin.Char?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.ranges.IntRange.randomOrNull(): kotlin.Int?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.ranges.IntRange.randomOrNull(random: kotlin.random.Random): kotlin.Int?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.ranges.LongRange.randomOrNull(): kotlin.Long?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.ranges.LongRange.randomOrNull(random: kotlin.random.Random): kotlin.Long?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
public inline fun <reified T> typeOf(): kotlin.reflect.KType
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public fun <T : kotlin.Any> kotlin.reflect.KClass<T>.cast(value: kotlin.Any?): T
|
||||
|
||||
@@ -15,7 +14,6 @@ public fun <T : kotlin.Any> kotlin.reflect.KClass<T>.createInstance(): T
|
||||
public inline fun <reified T : kotlin.Annotation> kotlin.reflect.KClass<*>.findAssociatedObject(): kotlin.Any?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public fun <T : kotlin.Any> kotlin.reflect.KClass<T>.safeCast(value: kotlin.Any?): T?
|
||||
|
||||
|
||||
@@ -437,7 +437,6 @@ public inline fun <S, T : S> kotlin.sequences.Sequence<T>.reduceIndexed(operatio
|
||||
public inline fun <S, T : S> kotlin.sequences.Sequence<T>.reduceIndexedOrNull(operation: (index: kotlin.Int, acc: S, T) -> S): S?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun <S, T : S> kotlin.sequences.Sequence<T>.reduceOrNull(operation: (acc: S, T) -> S): S?
|
||||
|
||||
public fun <T : kotlin.Any> kotlin.sequences.Sequence<T?>.requireNoNulls(): kotlin.sequences.Sequence<T>
|
||||
@@ -449,18 +448,15 @@ public fun <T, R> kotlin.sequences.Sequence<T>.runningFold(initial: R, operation
|
||||
public fun <T, R> kotlin.sequences.Sequence<T>.runningFoldIndexed(initial: R, operation: (index: kotlin.Int, acc: R, T) -> R): kotlin.sequences.Sequence<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun <S, T : S> kotlin.sequences.Sequence<T>.runningReduce(operation: (acc: S, T) -> S): kotlin.sequences.Sequence<S>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
public fun <S, T : S> kotlin.sequences.Sequence<T>.runningReduceIndexed(operation: (index: kotlin.Int, acc: S, T) -> S): kotlin.sequences.Sequence<S>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun <T, R> kotlin.sequences.Sequence<T>.scan(initial: R, operation: (acc: R, T) -> R): kotlin.sequences.Sequence<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun <T, R> kotlin.sequences.Sequence<T>.scanIndexed(initial: R, operation: (index: kotlin.Int, acc: R, T) -> R): kotlin.sequences.Sequence<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
|
||||
@@ -115,15 +115,12 @@ public inline fun kotlin.text.StringBuilder.appendLine(value: kotlin.Short): kot
|
||||
public inline fun kotlin.text.StringBuilder.appendLine(value: kotlin.String?): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun <T : kotlin.text.Appendable> T.appendRange(value: kotlin.CharSequence, startIndex: kotlin.Int, endIndex: kotlin.Int): T
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.text.StringBuilder.appendRange(value: kotlin.CharArray, startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.text.StringBuilder.appendRange(value: kotlin.CharSequence, startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.text.StringBuilder
|
||||
|
||||
public fun kotlin.CharSequence.asIterable(): kotlin.collections.Iterable<kotlin.Char>
|
||||
@@ -180,11 +177,9 @@ public fun kotlin.String.compareTo(other: kotlin.String, ignoreCase: kotlin.Bool
|
||||
public inline fun kotlin.String.concat(str: kotlin.String): kotlin.String
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.CharArray.concatToString(): kotlin.String
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.CharArray.concatToString(startIndex: kotlin.Int = ..., endIndex: kotlin.Int = ...): kotlin.String
|
||||
|
||||
public operator fun kotlin.CharSequence.contains(char: kotlin.Char, ignoreCase: kotlin.Boolean = ...): kotlin.Boolean
|
||||
@@ -210,19 +205,15 @@ public inline fun kotlin.CharSequence.count(predicate: (kotlin.Char) -> kotlin.B
|
||||
public fun kotlin.String.decapitalize(): kotlin.String
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.ByteArray.decodeToString(): kotlin.String
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.ByteArray.decodeToString(startIndex: kotlin.Int = ..., endIndex: kotlin.Int = ..., throwOnInvalidSequence: kotlin.Boolean = ...): kotlin.String
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.text.StringBuilder.deleteAt(index: kotlin.Int): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.text.StringBuilder.deleteRange(startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.5")
|
||||
@@ -274,11 +265,9 @@ public inline fun kotlin.CharSequence.elementAtOrElse(index: kotlin.Int, default
|
||||
public inline fun kotlin.CharSequence.elementAtOrNull(index: kotlin.Int): kotlin.Char?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.String.encodeToByteArray(): kotlin.ByteArray
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.String.encodeToByteArray(startIndex: kotlin.Int = ..., endIndex: kotlin.Int = ..., throwOnInvalidSequence: kotlin.Boolean = ...): kotlin.ByteArray
|
||||
|
||||
public fun kotlin.CharSequence.endsWith(char: kotlin.Char, ignoreCase: kotlin.Boolean = ...): kotlin.Boolean
|
||||
@@ -451,11 +440,9 @@ public inline fun kotlin.CharSequence.indexOfFirst(predicate: (kotlin.Char) -> k
|
||||
public inline fun kotlin.CharSequence.indexOfLast(predicate: (kotlin.Char) -> kotlin.Boolean): kotlin.Int
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.text.StringBuilder.insertRange(index: kotlin.Int, value: kotlin.CharArray, startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.text.StringBuilder.insertRange(index: kotlin.Int, value: kotlin.CharSequence, startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.text.StringBuilder
|
||||
|
||||
public fun kotlin.CharSequence.isBlank(): kotlin.Boolean
|
||||
@@ -732,12 +719,10 @@ public inline fun kotlin.CharSequence.random(): kotlin.Char
|
||||
public fun kotlin.CharSequence.random(random: kotlin.random.Random): kotlin.Char
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun kotlin.CharSequence.randomOrNull(): kotlin.Char?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.CharSequence.randomOrNull(random: kotlin.random.Random): kotlin.Char?
|
||||
|
||||
public inline fun kotlin.CharSequence.reduce(operation: (acc: kotlin.Char, kotlin.Char) -> kotlin.Char): kotlin.Char
|
||||
@@ -748,7 +733,6 @@ public inline fun kotlin.CharSequence.reduceIndexed(operation: (index: kotlin.In
|
||||
public inline fun kotlin.CharSequence.reduceIndexedOrNull(operation: (index: kotlin.Int, acc: kotlin.Char, kotlin.Char) -> kotlin.Char): kotlin.Char?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.CharSequence.reduceOrNull(operation: (acc: kotlin.Char, kotlin.Char) -> kotlin.Char): kotlin.Char?
|
||||
|
||||
public inline fun kotlin.CharSequence.reduceRight(operation: (kotlin.Char, acc: kotlin.Char) -> kotlin.Char): kotlin.Char
|
||||
@@ -759,7 +743,6 @@ public inline fun kotlin.CharSequence.reduceRightIndexed(operation: (index: kotl
|
||||
public inline fun kotlin.CharSequence.reduceRightIndexedOrNull(operation: (index: kotlin.Int, kotlin.Char, acc: kotlin.Char) -> kotlin.Char): kotlin.Char?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.CharSequence.reduceRightOrNull(operation: (kotlin.Char, acc: kotlin.Char) -> kotlin.Char): kotlin.Char?
|
||||
|
||||
public fun kotlin.CharSequence.regionMatches(thisOffset: kotlin.Int, other: kotlin.CharSequence, otherOffset: kotlin.Int, length: kotlin.Int, ignoreCase: kotlin.Boolean = ...): kotlin.Boolean
|
||||
@@ -874,19 +857,15 @@ public inline fun kotlin.CharSequence.runningReduce(operation: (acc: kotlin.Char
|
||||
public inline fun kotlin.CharSequence.runningReduceIndexed(operation: (index: kotlin.Int, acc: kotlin.Char, kotlin.Char) -> kotlin.Char): kotlin.collections.List<kotlin.Char>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun <R> kotlin.CharSequence.scan(initial: R, operation: (acc: R, kotlin.Char) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun <R> kotlin.CharSequence.scanIndexed(initial: R, operation: (index: kotlin.Int, acc: R, kotlin.Char) -> R): kotlin.collections.List<R>
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline operator fun kotlin.text.StringBuilder.set(index: kotlin.Int, value: kotlin.Char): kotlin.Unit
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.text.StringBuilder.setRange(startIndex: kotlin.Int, endIndex: kotlin.Int, value: kotlin.String): kotlin.text.StringBuilder
|
||||
|
||||
public fun kotlin.CharSequence.single(): kotlin.Char
|
||||
@@ -1049,7 +1028,6 @@ public fun kotlin.String.toByteOrNull(): kotlin.Byte?
|
||||
public fun kotlin.String.toByteOrNull(radix: kotlin.Int): kotlin.Byte?
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.String.toCharArray(): kotlin.CharArray
|
||||
|
||||
@kotlin.ExperimentalStdlibApi
|
||||
@@ -1057,11 +1035,9 @@ public fun kotlin.String.toCharArray(): kotlin.CharArray
|
||||
public fun kotlin.String.toCharArray(destination: kotlin.CharArray, destinationOffset: kotlin.Int = ..., startIndex: kotlin.Int = ..., endIndex: kotlin.Int = ...): kotlin.CharArray
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public fun kotlin.String.toCharArray(startIndex: kotlin.Int = ..., endIndex: kotlin.Int = ...): kotlin.CharArray
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public inline fun kotlin.text.StringBuilder.toCharArray(destination: kotlin.CharArray, destinationOffset: kotlin.Int = ..., startIndex: kotlin.Int = ..., endIndex: kotlin.Int = ...): kotlin.Unit
|
||||
|
||||
public fun <C : kotlin.collections.MutableCollection<in kotlin.Char>> kotlin.CharSequence.toCollection(destination: C): C
|
||||
@@ -1455,7 +1431,6 @@ public final enum class CharCategory : kotlin.Enum<kotlin.text.CharCategory> {
|
||||
}
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public open class CharacterCodingException : kotlin.Exception {
|
||||
public constructor CharacterCodingException()
|
||||
|
||||
@@ -1699,7 +1674,6 @@ public final class StringBuilder : kotlin.text.Appendable, kotlin.CharSequence {
|
||||
public open override fun append(value: kotlin.Char): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun append(value: kotlin.CharArray): kotlin.text.StringBuilder
|
||||
|
||||
public open override fun append(value: kotlin.CharSequence?): kotlin.text.StringBuilder
|
||||
@@ -1725,11 +1699,9 @@ public final class StringBuilder : kotlin.text.Appendable, kotlin.CharSequence {
|
||||
public final fun append(value: kotlin.String?): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun appendRange(value: kotlin.CharArray, startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@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.3")
|
||||
@@ -1740,48 +1712,38 @@ public final class StringBuilder : kotlin.text.Appendable, kotlin.CharSequence {
|
||||
public final fun clear(): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun deleteAt(index: kotlin.Int): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun deleteRange(startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun ensureCapacity(minimumCapacity: kotlin.Int): kotlin.Unit
|
||||
|
||||
public open override operator fun get(index: kotlin.Int): kotlin.Char
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun indexOf(string: kotlin.String): kotlin.Int
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun indexOf(string: kotlin.String, startIndex: kotlin.Int): kotlin.Int
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun insert(index: kotlin.Int, value: kotlin.Any?): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun insert(index: kotlin.Int, value: kotlin.Boolean): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.9")
|
||||
public final fun insert(index: kotlin.Int, value: kotlin.Byte): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun insert(index: kotlin.Int, value: kotlin.Char): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun insert(index: kotlin.Int, value: kotlin.CharArray): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun insert(index: kotlin.Int, value: kotlin.CharSequence?): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.9")
|
||||
@@ -1800,57 +1762,45 @@ public final class StringBuilder : kotlin.text.Appendable, kotlin.CharSequence {
|
||||
public final fun insert(index: kotlin.Int, value: kotlin.Short): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun insert(index: kotlin.Int, value: kotlin.String?): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun insertRange(index: kotlin.Int, value: kotlin.CharArray, startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun insertRange(index: kotlin.Int, value: kotlin.CharSequence, startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun lastIndexOf(string: kotlin.String): kotlin.Int
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun lastIndexOf(string: kotlin.String, startIndex: kotlin.Int): kotlin.Int
|
||||
|
||||
public final fun reverse(): kotlin.text.StringBuilder
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final operator fun set(index: kotlin.Int, value: kotlin.Char): kotlin.Unit
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun setLength(newLength: kotlin.Int): kotlin.Unit
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun setRange(startIndex: kotlin.Int, endIndex: kotlin.Int, value: kotlin.String): kotlin.text.StringBuilder
|
||||
|
||||
public open override fun subSequence(startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.CharSequence
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun substring(startIndex: kotlin.Int): kotlin.String
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun substring(startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.String
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun toCharArray(destination: kotlin.CharArray, destinationOffset: kotlin.Int = ..., startIndex: kotlin.Int = ..., endIndex: kotlin.Int = ...): kotlin.Unit
|
||||
|
||||
public open override fun toString(): kotlin.String
|
||||
|
||||
@kotlin.SinceKotlin(version = "1.4")
|
||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||
public final fun trimToSize(): kotlin.Unit
|
||||
}
|
||||
|
||||
|
||||
@@ -2617,7 +2617,6 @@ public fun CharArray.random(random: Random): Char {
|
||||
* Returns a random element from this array, or `null` if this array is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <T> Array<out T>.randomOrNull(): T? {
|
||||
return randomOrNull(Random)
|
||||
@@ -2627,7 +2626,6 @@ public inline fun <T> Array<out T>.randomOrNull(): T? {
|
||||
* Returns a random element from this array, or `null` if this array is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun ByteArray.randomOrNull(): Byte? {
|
||||
return randomOrNull(Random)
|
||||
@@ -2637,7 +2635,6 @@ public inline fun ByteArray.randomOrNull(): Byte? {
|
||||
* Returns a random element from this array, or `null` if this array is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun ShortArray.randomOrNull(): Short? {
|
||||
return randomOrNull(Random)
|
||||
@@ -2647,7 +2644,6 @@ public inline fun ShortArray.randomOrNull(): Short? {
|
||||
* Returns a random element from this array, or `null` if this array is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun IntArray.randomOrNull(): Int? {
|
||||
return randomOrNull(Random)
|
||||
@@ -2657,7 +2653,6 @@ public inline fun IntArray.randomOrNull(): Int? {
|
||||
* Returns a random element from this array, or `null` if this array is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun LongArray.randomOrNull(): Long? {
|
||||
return randomOrNull(Random)
|
||||
@@ -2667,7 +2662,6 @@ public inline fun LongArray.randomOrNull(): Long? {
|
||||
* Returns a random element from this array, or `null` if this array is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun FloatArray.randomOrNull(): Float? {
|
||||
return randomOrNull(Random)
|
||||
@@ -2677,7 +2671,6 @@ public inline fun FloatArray.randomOrNull(): Float? {
|
||||
* Returns a random element from this array, or `null` if this array is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun DoubleArray.randomOrNull(): Double? {
|
||||
return randomOrNull(Random)
|
||||
@@ -2687,7 +2680,6 @@ public inline fun DoubleArray.randomOrNull(): Double? {
|
||||
* Returns a random element from this array, or `null` if this array is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun BooleanArray.randomOrNull(): Boolean? {
|
||||
return randomOrNull(Random)
|
||||
@@ -2697,7 +2689,6 @@ public inline fun BooleanArray.randomOrNull(): Boolean? {
|
||||
* Returns a random element from this array, or `null` if this array is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun CharArray.randomOrNull(): Char? {
|
||||
return randomOrNull(Random)
|
||||
@@ -2707,7 +2698,6 @@ public inline fun CharArray.randomOrNull(): Char? {
|
||||
* Returns a random element from this array using the specified source of randomness, or `null` if this array is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun <T> Array<out T>.randomOrNull(random: Random): T? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -2718,7 +2708,6 @@ public fun <T> Array<out T>.randomOrNull(random: Random): T? {
|
||||
* Returns a random element from this array using the specified source of randomness, or `null` if this array is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun ByteArray.randomOrNull(random: Random): Byte? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -2729,7 +2718,6 @@ public fun ByteArray.randomOrNull(random: Random): Byte? {
|
||||
* Returns a random element from this array using the specified source of randomness, or `null` if this array is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun ShortArray.randomOrNull(random: Random): Short? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -2740,7 +2728,6 @@ public fun ShortArray.randomOrNull(random: Random): Short? {
|
||||
* Returns a random element from this array using the specified source of randomness, or `null` if this array is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun IntArray.randomOrNull(random: Random): Int? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -2751,7 +2738,6 @@ public fun IntArray.randomOrNull(random: Random): Int? {
|
||||
* Returns a random element from this array using the specified source of randomness, or `null` if this array is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun LongArray.randomOrNull(random: Random): Long? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -2762,7 +2748,6 @@ public fun LongArray.randomOrNull(random: Random): Long? {
|
||||
* Returns a random element from this array using the specified source of randomness, or `null` if this array is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun FloatArray.randomOrNull(random: Random): Float? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -2773,7 +2758,6 @@ public fun FloatArray.randomOrNull(random: Random): Float? {
|
||||
* Returns a random element from this array using the specified source of randomness, or `null` if this array is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun DoubleArray.randomOrNull(random: Random): Double? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -2784,7 +2768,6 @@ public fun DoubleArray.randomOrNull(random: Random): Double? {
|
||||
* Returns a random element from this array using the specified source of randomness, or `null` if this array is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun BooleanArray.randomOrNull(random: Random): Boolean? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -2795,7 +2778,6 @@ public fun BooleanArray.randomOrNull(random: Random): Boolean? {
|
||||
* Returns a random element from this array using the specified source of randomness, or `null` if this array is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun CharArray.randomOrNull(random: Random): Char? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -19593,7 +19575,6 @@ public inline fun CharArray.reduceIndexedOrNull(operation: (index: Int, acc: Cha
|
||||
* @sample samples.collections.Collections.Aggregates.reduceOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun <S, T : S> Array<out T>.reduceOrNull(operation: (acc: S, T) -> S): S? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -19616,7 +19597,6 @@ public inline fun <S, T : S> Array<out T>.reduceOrNull(operation: (acc: S, T) ->
|
||||
* @sample samples.collections.Collections.Aggregates.reduceOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun ByteArray.reduceOrNull(operation: (acc: Byte, Byte) -> Byte): Byte? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -19639,7 +19619,6 @@ public inline fun ByteArray.reduceOrNull(operation: (acc: Byte, Byte) -> Byte):
|
||||
* @sample samples.collections.Collections.Aggregates.reduceOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun ShortArray.reduceOrNull(operation: (acc: Short, Short) -> Short): Short? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -19662,7 +19641,6 @@ public inline fun ShortArray.reduceOrNull(operation: (acc: Short, Short) -> Shor
|
||||
* @sample samples.collections.Collections.Aggregates.reduceOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun IntArray.reduceOrNull(operation: (acc: Int, Int) -> Int): Int? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -19685,7 +19663,6 @@ public inline fun IntArray.reduceOrNull(operation: (acc: Int, Int) -> Int): Int?
|
||||
* @sample samples.collections.Collections.Aggregates.reduceOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun LongArray.reduceOrNull(operation: (acc: Long, Long) -> Long): Long? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -19708,7 +19685,6 @@ public inline fun LongArray.reduceOrNull(operation: (acc: Long, Long) -> Long):
|
||||
* @sample samples.collections.Collections.Aggregates.reduceOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun FloatArray.reduceOrNull(operation: (acc: Float, Float) -> Float): Float? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -19731,7 +19707,6 @@ public inline fun FloatArray.reduceOrNull(operation: (acc: Float, Float) -> Floa
|
||||
* @sample samples.collections.Collections.Aggregates.reduceOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun DoubleArray.reduceOrNull(operation: (acc: Double, Double) -> Double): Double? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -19754,7 +19729,6 @@ public inline fun DoubleArray.reduceOrNull(operation: (acc: Double, Double) -> D
|
||||
* @sample samples.collections.Collections.Aggregates.reduceOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun BooleanArray.reduceOrNull(operation: (acc: Boolean, Boolean) -> Boolean): Boolean? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -19777,7 +19751,6 @@ public inline fun BooleanArray.reduceOrNull(operation: (acc: Boolean, Boolean) -
|
||||
* @sample samples.collections.Collections.Aggregates.reduceOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun CharArray.reduceOrNull(operation: (acc: Char, Char) -> Char): Char? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -20412,7 +20385,6 @@ public inline fun CharArray.reduceRightIndexedOrNull(operation: (index: Int, Cha
|
||||
* @sample samples.collections.Collections.Aggregates.reduceRightOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun <S, T : S> Array<out T>.reduceRightOrNull(operation: (T, acc: S) -> S): S? {
|
||||
var index = lastIndex
|
||||
if (index < 0) return null
|
||||
@@ -20435,7 +20407,6 @@ public inline fun <S, T : S> Array<out T>.reduceRightOrNull(operation: (T, acc:
|
||||
* @sample samples.collections.Collections.Aggregates.reduceRightOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun ByteArray.reduceRightOrNull(operation: (Byte, acc: Byte) -> Byte): Byte? {
|
||||
var index = lastIndex
|
||||
if (index < 0) return null
|
||||
@@ -20458,7 +20429,6 @@ public inline fun ByteArray.reduceRightOrNull(operation: (Byte, acc: Byte) -> By
|
||||
* @sample samples.collections.Collections.Aggregates.reduceRightOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun ShortArray.reduceRightOrNull(operation: (Short, acc: Short) -> Short): Short? {
|
||||
var index = lastIndex
|
||||
if (index < 0) return null
|
||||
@@ -20481,7 +20451,6 @@ public inline fun ShortArray.reduceRightOrNull(operation: (Short, acc: Short) ->
|
||||
* @sample samples.collections.Collections.Aggregates.reduceRightOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun IntArray.reduceRightOrNull(operation: (Int, acc: Int) -> Int): Int? {
|
||||
var index = lastIndex
|
||||
if (index < 0) return null
|
||||
@@ -20504,7 +20473,6 @@ public inline fun IntArray.reduceRightOrNull(operation: (Int, acc: Int) -> Int):
|
||||
* @sample samples.collections.Collections.Aggregates.reduceRightOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun LongArray.reduceRightOrNull(operation: (Long, acc: Long) -> Long): Long? {
|
||||
var index = lastIndex
|
||||
if (index < 0) return null
|
||||
@@ -20527,7 +20495,6 @@ public inline fun LongArray.reduceRightOrNull(operation: (Long, acc: Long) -> Lo
|
||||
* @sample samples.collections.Collections.Aggregates.reduceRightOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun FloatArray.reduceRightOrNull(operation: (Float, acc: Float) -> Float): Float? {
|
||||
var index = lastIndex
|
||||
if (index < 0) return null
|
||||
@@ -20550,7 +20517,6 @@ public inline fun FloatArray.reduceRightOrNull(operation: (Float, acc: Float) ->
|
||||
* @sample samples.collections.Collections.Aggregates.reduceRightOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun DoubleArray.reduceRightOrNull(operation: (Double, acc: Double) -> Double): Double? {
|
||||
var index = lastIndex
|
||||
if (index < 0) return null
|
||||
@@ -20573,7 +20539,6 @@ public inline fun DoubleArray.reduceRightOrNull(operation: (Double, acc: Double)
|
||||
* @sample samples.collections.Collections.Aggregates.reduceRightOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun BooleanArray.reduceRightOrNull(operation: (Boolean, acc: Boolean) -> Boolean): Boolean? {
|
||||
var index = lastIndex
|
||||
if (index < 0) return null
|
||||
@@ -20596,7 +20561,6 @@ public inline fun BooleanArray.reduceRightOrNull(operation: (Boolean, acc: Boole
|
||||
* @sample samples.collections.Collections.Aggregates.reduceRightOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun CharArray.reduceRightOrNull(operation: (Char, acc: Char) -> Char): Char? {
|
||||
var index = lastIndex
|
||||
if (index < 0) return null
|
||||
@@ -21058,7 +21022,6 @@ public inline fun <R> CharArray.runningFoldIndexed(initial: R, operation: (index
|
||||
* @sample samples.collections.Collections.Aggregates.runningReduce
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun <S, T : S> Array<out T>.runningReduce(operation: (acc: S, T) -> S): List<S> {
|
||||
if (isEmpty()) return emptyList()
|
||||
var accumulator: S = this[0]
|
||||
@@ -21450,7 +21413,6 @@ public inline fun CharArray.runningReduceIndexed(operation: (index: Int, acc: Ch
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun <T, R> Array<out T>.scan(initial: R, operation: (acc: R, T) -> R): List<R> {
|
||||
return runningFold(initial, operation)
|
||||
}
|
||||
@@ -21467,7 +21429,6 @@ public inline fun <T, R> Array<out T>.scan(initial: R, operation: (acc: R, T) ->
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> ByteArray.scan(initial: R, operation: (acc: R, Byte) -> R): List<R> {
|
||||
return runningFold(initial, operation)
|
||||
@@ -21485,7 +21446,6 @@ public inline fun <R> ByteArray.scan(initial: R, operation: (acc: R, Byte) -> R)
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> ShortArray.scan(initial: R, operation: (acc: R, Short) -> R): List<R> {
|
||||
return runningFold(initial, operation)
|
||||
@@ -21503,7 +21463,6 @@ public inline fun <R> ShortArray.scan(initial: R, operation: (acc: R, Short) ->
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> IntArray.scan(initial: R, operation: (acc: R, Int) -> R): List<R> {
|
||||
return runningFold(initial, operation)
|
||||
@@ -21521,7 +21480,6 @@ public inline fun <R> IntArray.scan(initial: R, operation: (acc: R, Int) -> R):
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> LongArray.scan(initial: R, operation: (acc: R, Long) -> R): List<R> {
|
||||
return runningFold(initial, operation)
|
||||
@@ -21539,7 +21497,6 @@ public inline fun <R> LongArray.scan(initial: R, operation: (acc: R, Long) -> R)
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> FloatArray.scan(initial: R, operation: (acc: R, Float) -> R): List<R> {
|
||||
return runningFold(initial, operation)
|
||||
@@ -21557,7 +21514,6 @@ public inline fun <R> FloatArray.scan(initial: R, operation: (acc: R, Float) ->
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> DoubleArray.scan(initial: R, operation: (acc: R, Double) -> R): List<R> {
|
||||
return runningFold(initial, operation)
|
||||
@@ -21575,7 +21531,6 @@ public inline fun <R> DoubleArray.scan(initial: R, operation: (acc: R, Double) -
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> BooleanArray.scan(initial: R, operation: (acc: R, Boolean) -> R): List<R> {
|
||||
return runningFold(initial, operation)
|
||||
@@ -21593,7 +21548,6 @@ public inline fun <R> BooleanArray.scan(initial: R, operation: (acc: R, Boolean)
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> CharArray.scan(initial: R, operation: (acc: R, Char) -> R): List<R> {
|
||||
return runningFold(initial, operation)
|
||||
@@ -21612,7 +21566,6 @@ public inline fun <R> CharArray.scan(initial: R, operation: (acc: R, Char) -> R)
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun <T, R> Array<out T>.scanIndexed(initial: R, operation: (index: Int, acc: R, T) -> R): List<R> {
|
||||
return runningFoldIndexed(initial, operation)
|
||||
}
|
||||
@@ -21630,7 +21583,6 @@ public inline fun <T, R> Array<out T>.scanIndexed(initial: R, operation: (index:
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> ByteArray.scanIndexed(initial: R, operation: (index: Int, acc: R, Byte) -> R): List<R> {
|
||||
return runningFoldIndexed(initial, operation)
|
||||
@@ -21649,7 +21601,6 @@ public inline fun <R> ByteArray.scanIndexed(initial: R, operation: (index: Int,
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> ShortArray.scanIndexed(initial: R, operation: (index: Int, acc: R, Short) -> R): List<R> {
|
||||
return runningFoldIndexed(initial, operation)
|
||||
@@ -21668,7 +21619,6 @@ public inline fun <R> ShortArray.scanIndexed(initial: R, operation: (index: Int,
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> IntArray.scanIndexed(initial: R, operation: (index: Int, acc: R, Int) -> R): List<R> {
|
||||
return runningFoldIndexed(initial, operation)
|
||||
@@ -21687,7 +21637,6 @@ public inline fun <R> IntArray.scanIndexed(initial: R, operation: (index: Int, a
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> LongArray.scanIndexed(initial: R, operation: (index: Int, acc: R, Long) -> R): List<R> {
|
||||
return runningFoldIndexed(initial, operation)
|
||||
@@ -21706,7 +21655,6 @@ public inline fun <R> LongArray.scanIndexed(initial: R, operation: (index: Int,
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> FloatArray.scanIndexed(initial: R, operation: (index: Int, acc: R, Float) -> R): List<R> {
|
||||
return runningFoldIndexed(initial, operation)
|
||||
@@ -21725,7 +21673,6 @@ public inline fun <R> FloatArray.scanIndexed(initial: R, operation: (index: Int,
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> DoubleArray.scanIndexed(initial: R, operation: (index: Int, acc: R, Double) -> R): List<R> {
|
||||
return runningFoldIndexed(initial, operation)
|
||||
@@ -21744,7 +21691,6 @@ public inline fun <R> DoubleArray.scanIndexed(initial: R, operation: (index: Int
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> BooleanArray.scanIndexed(initial: R, operation: (index: Int, acc: R, Boolean) -> R): List<R> {
|
||||
return runningFoldIndexed(initial, operation)
|
||||
@@ -21763,7 +21709,6 @@ public inline fun <R> BooleanArray.scanIndexed(initial: R, operation: (index: In
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> CharArray.scanIndexed(initial: R, operation: (index: Int, acc: R, Char) -> R): List<R> {
|
||||
return runningFoldIndexed(initial, operation)
|
||||
|
||||
@@ -565,7 +565,6 @@ public fun <T> Collection<T>.random(random: Random): T {
|
||||
* Returns a random element from this collection, or `null` if this collection is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <T> Collection<T>.randomOrNull(): T? {
|
||||
return randomOrNull(Random)
|
||||
@@ -575,7 +574,6 @@ public inline fun <T> Collection<T>.randomOrNull(): T? {
|
||||
* Returns a random element from this collection using the specified source of randomness, or `null` if this collection is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun <T> Collection<T>.randomOrNull(random: Random): T? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -2725,7 +2723,6 @@ public inline fun <S, T : S> Iterable<T>.reduceIndexedOrNull(operation: (index:
|
||||
* @sample samples.collections.Collections.Aggregates.reduceOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun <S, T : S> Iterable<T>.reduceOrNull(operation: (acc: S, T) -> S): S? {
|
||||
val iterator = this.iterator()
|
||||
if (!iterator.hasNext()) return null
|
||||
@@ -2819,7 +2816,6 @@ public inline fun <S, T : S> List<T>.reduceRightIndexedOrNull(operation: (index:
|
||||
* @sample samples.collections.Collections.Aggregates.reduceRightOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun <S, T : S> List<T>.reduceRightOrNull(operation: (T, acc: S) -> S): S? {
|
||||
val iterator = listIterator(size)
|
||||
if (!iterator.hasPrevious())
|
||||
@@ -2893,7 +2889,6 @@ public inline fun <T, R> Iterable<T>.runningFoldIndexed(initial: R, operation: (
|
||||
* @sample samples.collections.Collections.Aggregates.runningReduce
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun <S, T : S> Iterable<T>.runningReduce(operation: (acc: S, T) -> S): List<S> {
|
||||
val iterator = this.iterator()
|
||||
if (!iterator.hasNext()) return emptyList()
|
||||
@@ -2944,7 +2939,6 @@ public inline fun <S, T : S> Iterable<T>.runningReduceIndexed(operation: (index:
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun <T, R> Iterable<T>.scan(initial: R, operation: (acc: R, T) -> R): List<R> {
|
||||
return runningFold(initial, operation)
|
||||
}
|
||||
@@ -2962,7 +2956,6 @@ public inline fun <T, R> Iterable<T>.scan(initial: R, operation: (acc: R, T) ->
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun <T, R> Iterable<T>.scanIndexed(initial: R, operation: (index: Int, acc: R, T) -> R): List<R> {
|
||||
return runningFoldIndexed(initial, operation)
|
||||
}
|
||||
|
||||
@@ -226,7 +226,6 @@ public fun CharRange.random(random: Random): Char {
|
||||
* Returns a random element from this range, or `null` if this range is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun IntRange.randomOrNull(): Int? {
|
||||
return randomOrNull(Random)
|
||||
@@ -236,7 +235,6 @@ public inline fun IntRange.randomOrNull(): Int? {
|
||||
* Returns a random element from this range, or `null` if this range is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun LongRange.randomOrNull(): Long? {
|
||||
return randomOrNull(Random)
|
||||
@@ -246,7 +244,6 @@ public inline fun LongRange.randomOrNull(): Long? {
|
||||
* Returns a random element from this range, or `null` if this range is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun CharRange.randomOrNull(): Char? {
|
||||
return randomOrNull(Random)
|
||||
@@ -256,7 +253,6 @@ public inline fun CharRange.randomOrNull(): Char? {
|
||||
* Returns a random element from this range using the specified source of randomness, or `null` if this range is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun IntRange.randomOrNull(random: Random): Int? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -267,7 +263,6 @@ public fun IntRange.randomOrNull(random: Random): Int? {
|
||||
* Returns a random element from this range using the specified source of randomness, or `null` if this range is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun LongRange.randomOrNull(random: Random): Long? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -278,7 +273,6 @@ public fun LongRange.randomOrNull(random: Random): Long? {
|
||||
* Returns a random element from this range using the specified source of randomness, or `null` if this range is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun CharRange.randomOrNull(random: Random): Char? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
|
||||
@@ -2276,7 +2276,6 @@ public inline fun <S, T : S> Sequence<T>.reduceIndexedOrNull(operation: (index:
|
||||
* @sample samples.collections.Collections.Aggregates.reduceOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun <S, T : S> Sequence<T>.reduceOrNull(operation: (acc: S, T) -> S): S? {
|
||||
val iterator = this.iterator()
|
||||
if (!iterator.hasNext()) return null
|
||||
@@ -2357,7 +2356,6 @@ public fun <T, R> Sequence<T>.runningFoldIndexed(initial: R, operation: (index:
|
||||
* @sample samples.collections.Collections.Aggregates.runningReduce
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun <S, T : S> Sequence<T>.runningReduce(operation: (acc: S, T) -> S): Sequence<S> {
|
||||
return sequence {
|
||||
val iterator = iterator()
|
||||
@@ -2418,7 +2416,6 @@ public fun <S, T : S> Sequence<T>.runningReduceIndexed(operation: (index: Int, a
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun <T, R> Sequence<T>.scan(initial: R, operation: (acc: R, T) -> R): Sequence<R> {
|
||||
return runningFold(initial, operation)
|
||||
}
|
||||
@@ -2440,7 +2437,6 @@ public fun <T, R> Sequence<T>.scan(initial: R, operation: (acc: R, T) -> R): Seq
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun <T, R> Sequence<T>.scanIndexed(initial: R, operation: (index: Int, acc: R, T) -> R): Sequence<R> {
|
||||
return runningFoldIndexed(initial, operation)
|
||||
}
|
||||
|
||||
@@ -245,7 +245,6 @@ public fun CharSequence.random(random: Random): Char {
|
||||
* Returns a random character from this char sequence, or `null` if this char sequence is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun CharSequence.randomOrNull(): Char? {
|
||||
return randomOrNull(Random)
|
||||
@@ -255,7 +254,6 @@ public inline fun CharSequence.randomOrNull(): Char? {
|
||||
* Returns a random character from this char sequence using the specified source of randomness, or `null` if this char sequence is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun CharSequence.randomOrNull(random: Random): Char? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -1864,7 +1862,6 @@ public inline fun CharSequence.reduceIndexedOrNull(operation: (index: Int, acc:
|
||||
* @sample samples.collections.Collections.Aggregates.reduceOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun CharSequence.reduceOrNull(operation: (acc: Char, Char) -> Char): Char? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -1955,7 +1952,6 @@ public inline fun CharSequence.reduceRightIndexedOrNull(operation: (index: Int,
|
||||
* @sample samples.collections.Collections.Aggregates.reduceRightOrNull
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun CharSequence.reduceRightOrNull(operation: (Char, acc: Char) -> Char): Char? {
|
||||
var index = lastIndex
|
||||
if (index < 0) return null
|
||||
@@ -2072,7 +2068,6 @@ public inline fun CharSequence.runningReduceIndexed(operation: (index: Int, acc:
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun <R> CharSequence.scan(initial: R, operation: (acc: R, Char) -> R): List<R> {
|
||||
return runningFold(initial, operation)
|
||||
}
|
||||
@@ -2090,7 +2085,6 @@ public inline fun <R> CharSequence.scan(initial: R, operation: (acc: R, Char) ->
|
||||
* @sample samples.collections.Collections.Aggregates.scan
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun <R> CharSequence.scanIndexed(initial: R, operation: (index: Int, acc: R, Char) -> R): List<R> {
|
||||
return runningFoldIndexed(initial, operation)
|
||||
}
|
||||
|
||||
@@ -1267,7 +1267,6 @@ public fun UShortArray.random(random: Random): UShort {
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun UIntArray.randomOrNull(): UInt? {
|
||||
return randomOrNull(Random)
|
||||
@@ -1278,7 +1277,6 @@ public inline fun UIntArray.randomOrNull(): UInt? {
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun ULongArray.randomOrNull(): ULong? {
|
||||
return randomOrNull(Random)
|
||||
@@ -1289,7 +1287,6 @@ public inline fun ULongArray.randomOrNull(): ULong? {
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun UByteArray.randomOrNull(): UByte? {
|
||||
return randomOrNull(Random)
|
||||
@@ -1300,7 +1297,6 @@ public inline fun UByteArray.randomOrNull(): UByte? {
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun UShortArray.randomOrNull(): UShort? {
|
||||
return randomOrNull(Random)
|
||||
@@ -1311,7 +1307,6 @@ public inline fun UShortArray.randomOrNull(): UShort? {
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun UIntArray.randomOrNull(random: Random): UInt? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -1323,7 +1318,6 @@ public fun UIntArray.randomOrNull(random: Random): UInt? {
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun ULongArray.randomOrNull(random: Random): ULong? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -1335,7 +1329,6 @@ public fun ULongArray.randomOrNull(random: Random): ULong? {
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun UByteArray.randomOrNull(random: Random): UByte? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -1347,7 +1340,6 @@ public fun UByteArray.randomOrNull(random: Random): UByte? {
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun UShortArray.randomOrNull(random: Random): UShort? {
|
||||
if (isEmpty())
|
||||
return null
|
||||
@@ -8703,7 +8695,6 @@ public inline fun UShortArray.reduceIndexedOrNull(operation: (index: Int, acc: U
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun UIntArray.reduceOrNull(operation: (acc: UInt, UInt) -> UInt): UInt? {
|
||||
if (isEmpty())
|
||||
@@ -8728,7 +8719,6 @@ public inline fun UIntArray.reduceOrNull(operation: (acc: UInt, UInt) -> UInt):
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun ULongArray.reduceOrNull(operation: (acc: ULong, ULong) -> ULong): ULong? {
|
||||
if (isEmpty())
|
||||
@@ -8753,7 +8743,6 @@ public inline fun ULongArray.reduceOrNull(operation: (acc: ULong, ULong) -> ULon
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun UByteArray.reduceOrNull(operation: (acc: UByte, UByte) -> UByte): UByte? {
|
||||
if (isEmpty())
|
||||
@@ -8778,7 +8767,6 @@ public inline fun UByteArray.reduceOrNull(operation: (acc: UByte, UByte) -> UByt
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun UShortArray.reduceOrNull(operation: (acc: UShort, UShort) -> UShort): UShort? {
|
||||
if (isEmpty())
|
||||
@@ -9107,7 +9095,6 @@ public inline fun UShortArray.reduceRightIndexedOrNull(operation: (index: Int, U
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun UIntArray.reduceRightOrNull(operation: (UInt, acc: UInt) -> UInt): UInt? {
|
||||
var index = lastIndex
|
||||
@@ -9132,7 +9119,6 @@ public inline fun UIntArray.reduceRightOrNull(operation: (UInt, acc: UInt) -> UI
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun ULongArray.reduceRightOrNull(operation: (ULong, acc: ULong) -> ULong): ULong? {
|
||||
var index = lastIndex
|
||||
@@ -9157,7 +9143,6 @@ public inline fun ULongArray.reduceRightOrNull(operation: (ULong, acc: ULong) ->
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun UByteArray.reduceRightOrNull(operation: (UByte, acc: UByte) -> UByte): UByte? {
|
||||
var index = lastIndex
|
||||
@@ -9182,7 +9167,6 @@ public inline fun UByteArray.reduceRightOrNull(operation: (UByte, acc: UByte) ->
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun UShortArray.reduceRightOrNull(operation: (UShort, acc: UShort) -> UShort): UShort? {
|
||||
var index = lastIndex
|
||||
@@ -9615,7 +9599,6 @@ public inline fun UShortArray.runningReduceIndexed(operation: (index: Int, acc:
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> UIntArray.scan(initial: R, operation: (acc: R, UInt) -> R): List<R> {
|
||||
return runningFold(initial, operation)
|
||||
@@ -9634,7 +9617,6 @@ public inline fun <R> UIntArray.scan(initial: R, operation: (acc: R, UInt) -> R)
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> ULongArray.scan(initial: R, operation: (acc: R, ULong) -> R): List<R> {
|
||||
return runningFold(initial, operation)
|
||||
@@ -9653,7 +9635,6 @@ public inline fun <R> ULongArray.scan(initial: R, operation: (acc: R, ULong) ->
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> UByteArray.scan(initial: R, operation: (acc: R, UByte) -> R): List<R> {
|
||||
return runningFold(initial, operation)
|
||||
@@ -9672,7 +9653,6 @@ public inline fun <R> UByteArray.scan(initial: R, operation: (acc: R, UByte) ->
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> UShortArray.scan(initial: R, operation: (acc: R, UShort) -> R): List<R> {
|
||||
return runningFold(initial, operation)
|
||||
@@ -9692,7 +9672,6 @@ public inline fun <R> UShortArray.scan(initial: R, operation: (acc: R, UShort) -
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> UIntArray.scanIndexed(initial: R, operation: (index: Int, acc: R, UInt) -> R): List<R> {
|
||||
return runningFoldIndexed(initial, operation)
|
||||
@@ -9712,7 +9691,6 @@ public inline fun <R> UIntArray.scanIndexed(initial: R, operation: (index: Int,
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> ULongArray.scanIndexed(initial: R, operation: (index: Int, acc: R, ULong) -> R): List<R> {
|
||||
return runningFoldIndexed(initial, operation)
|
||||
@@ -9732,7 +9710,6 @@ public inline fun <R> ULongArray.scanIndexed(initial: R, operation: (index: Int,
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> UByteArray.scanIndexed(initial: R, operation: (index: Int, acc: R, UByte) -> R): List<R> {
|
||||
return runningFoldIndexed(initial, operation)
|
||||
@@ -9752,7 +9729,6 @@ public inline fun <R> UByteArray.scanIndexed(initial: R, operation: (index: Int,
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <R> UShortArray.scanIndexed(initial: R, operation: (index: Int, acc: R, UShort) -> R): List<R> {
|
||||
return runningFoldIndexed(initial, operation)
|
||||
|
||||
@@ -133,7 +133,6 @@ public expect fun String(chars: CharArray, offset: Int, length: Int): String
|
||||
* Concatenates characters in this [CharArray] into a String.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun CharArray.concatToString(): String
|
||||
|
||||
/**
|
||||
@@ -146,14 +145,12 @@ public expect fun CharArray.concatToString(): String
|
||||
* @throws IllegalArgumentException if [startIndex] is greater than [endIndex].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun CharArray.concatToString(startIndex: Int = 0, endIndex: Int = this.size): String
|
||||
|
||||
/**
|
||||
* Returns a [CharArray] containing characters of this string.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun String.toCharArray(): CharArray
|
||||
|
||||
/**
|
||||
@@ -166,7 +163,6 @@ public expect fun String.toCharArray(): CharArray
|
||||
* @throws IllegalArgumentException if [startIndex] is greater than [endIndex].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun String.toCharArray(startIndex: Int = 0, endIndex: Int = this.length): CharArray
|
||||
|
||||
/**
|
||||
@@ -196,7 +192,6 @@ public expect fun String.toCharArray(
|
||||
* Malformed byte sequences are replaced by the replacement char `\uFFFD`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun ByteArray.decodeToString(): String
|
||||
|
||||
/**
|
||||
@@ -211,7 +206,6 @@ public expect fun ByteArray.decodeToString(): String
|
||||
* @throws CharacterCodingException if the byte array contains malformed UTF-8 byte sequence and [throwOnInvalidSequence] is true.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun ByteArray.decodeToString(
|
||||
startIndex: Int = 0,
|
||||
endIndex: Int = this.size,
|
||||
@@ -224,7 +218,6 @@ public expect fun ByteArray.decodeToString(
|
||||
* Any malformed char sequence is replaced by the replacement byte sequence.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun String.encodeToByteArray(): ByteArray
|
||||
|
||||
/**
|
||||
@@ -239,7 +232,6 @@ public expect fun String.encodeToByteArray(): ByteArray
|
||||
* @throws CharacterCodingException if this string contains malformed char sequence and [throwOnInvalidSequence] is true.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun String.encodeToByteArray(
|
||||
startIndex: Int = 0,
|
||||
endIndex: Int = this.length,
|
||||
|
||||
@@ -99,7 +99,6 @@ public actual inline fun Float.Companion.fromBits(bits: Int): Float =
|
||||
* Counts the number of set bits in the binary representation of this [Int] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Int.countOneBits(): Int {
|
||||
// Hacker's Delight 5-1 algorithm
|
||||
var v = this
|
||||
@@ -115,7 +114,6 @@ public actual fun Int.countOneBits(): Int {
|
||||
* Counts the number of consecutive most significant bits that are zero in the binary representation of this [Int] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun Int.countLeadingZeroBits(): Int = nativeClz32(this)
|
||||
|
||||
@@ -123,7 +121,6 @@ public actual inline fun Int.countLeadingZeroBits(): Int = nativeClz32(this)
|
||||
* Counts the number of consecutive least significant bits that are zero in the binary representation of this [Int] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Int.countTrailingZeroBits(): Int =
|
||||
// Hacker's Delight 5-4 algorithm for expressing countTrailingZeroBits with countLeadingZeroBits
|
||||
Int.SIZE_BITS - (this or -this).inv().countLeadingZeroBits()
|
||||
@@ -133,7 +130,6 @@ public actual fun Int.countTrailingZeroBits(): Int =
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Int.takeHighestOneBit(): Int =
|
||||
if (this == 0) 0 else 1.shl(Int.SIZE_BITS - 1 - countLeadingZeroBits())
|
||||
|
||||
@@ -142,7 +138,6 @@ public actual fun Int.takeHighestOneBit(): Int =
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Int.takeLowestOneBit(): Int =
|
||||
// Hacker's Delight 2-1 algorithm for isolating rightmost 1-bit
|
||||
this and -this
|
||||
@@ -183,7 +178,6 @@ public actual fun Int.rotateRight(bitCount: Int): Int =
|
||||
* Counts the number of set bits in the binary representation of this [Long] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Long.countOneBits(): Int =
|
||||
high.countOneBits() + low.countOneBits()
|
||||
|
||||
@@ -191,7 +185,6 @@ public actual fun Long.countOneBits(): Int =
|
||||
* Counts the number of consecutive most significant bits that are zero in the binary representation of this [Long] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Long.countLeadingZeroBits(): Int =
|
||||
when (val high = this.high) {
|
||||
0 -> Int.SIZE_BITS + low.countLeadingZeroBits()
|
||||
@@ -202,7 +195,6 @@ public actual fun Long.countLeadingZeroBits(): Int =
|
||||
* Counts the number of consecutive least significant bits that are zero in the binary representation of this [Long] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Long.countTrailingZeroBits(): Int =
|
||||
when (val low = this.low) {
|
||||
0 -> Int.SIZE_BITS + high.countTrailingZeroBits()
|
||||
@@ -214,7 +206,6 @@ public actual fun Long.countTrailingZeroBits(): Int =
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Long.takeHighestOneBit(): Long =
|
||||
when (val high = this.high) {
|
||||
0 -> Long(low.takeHighestOneBit(), 0)
|
||||
@@ -226,7 +217,6 @@ public actual fun Long.takeHighestOneBit(): Long =
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Long.takeLowestOneBit(): Long =
|
||||
when (val low = this.low) {
|
||||
0 -> Long(0, high.takeLowestOneBit())
|
||||
|
||||
@@ -9,7 +9,6 @@ package kotlin.text
|
||||
* The exception thrown when a character encoding or decoding error occurs.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual open class CharacterCodingException(message: String?) : Exception(message) {
|
||||
actual constructor() : this(null)
|
||||
}
|
||||
|
||||
@@ -160,7 +160,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* Characters are appended in order, starting at the index 0.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun append(value: CharArray): StringBuilder {
|
||||
string += value.concatToString()
|
||||
return this
|
||||
@@ -199,7 +198,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* thus calling this method has no effect on the further performance of operations.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun ensureCapacity(minimumCapacity: Int) {
|
||||
}
|
||||
|
||||
@@ -209,7 +207,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* Returns `-1` if the specified [string] does not occur in this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun indexOf(string: String): Int = this.string.asDynamic().indexOf(string)
|
||||
|
||||
/**
|
||||
@@ -219,7 +216,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* Returns `-1` if the specified [string] does not occur in this string builder starting at the specified [startIndex].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun indexOf(string: String, startIndex: Int): Int = this.string.asDynamic().indexOf(string, startIndex)
|
||||
|
||||
/**
|
||||
@@ -229,7 +225,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* Returns `-1` if the specified [string] does not occur in this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun lastIndexOf(string: String): Int = this.string.asDynamic().lastIndexOf(string)
|
||||
|
||||
/**
|
||||
@@ -239,7 +234,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* Returns `-1` if the specified [string] does not occur in this string builder starting at the specified [startIndex].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun lastIndexOf(string: String, startIndex: Int): Int {
|
||||
if (string.isEmpty() && startIndex < 0) return -1
|
||||
return this.string.asDynamic().lastIndexOf(string, startIndex)
|
||||
@@ -254,7 +248,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun insert(index: Int, value: Boolean): StringBuilder {
|
||||
AbstractList.checkPositionIndex(index, length)
|
||||
|
||||
@@ -334,7 +327,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun insert(index: Int, value: Char): StringBuilder {
|
||||
AbstractList.checkPositionIndex(index, length)
|
||||
|
||||
@@ -350,7 +342,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun insert(index: Int, value: CharArray): StringBuilder {
|
||||
AbstractList.checkPositionIndex(index, length)
|
||||
|
||||
@@ -369,7 +360,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun insert(index: Int, value: CharSequence?): StringBuilder {
|
||||
AbstractList.checkPositionIndex(index, length)
|
||||
|
||||
@@ -386,7 +376,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun insert(index: Int, value: Any?): StringBuilder {
|
||||
AbstractList.checkPositionIndex(index, length)
|
||||
|
||||
@@ -402,7 +391,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun insert(index: Int, value: String?): StringBuilder {
|
||||
AbstractList.checkPositionIndex(index, length)
|
||||
|
||||
@@ -423,7 +411,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] if [newLength] is less than zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun setLength(newLength: Int) {
|
||||
if (newLength < 0) {
|
||||
throw IllegalArgumentException("Negative new length: $newLength.")
|
||||
@@ -444,7 +431,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* @throws IndexOutOfBoundsException if [startIndex] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun substring(startIndex: Int): String {
|
||||
AbstractList.checkPositionIndex(startIndex, length)
|
||||
|
||||
@@ -457,7 +443,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this string builder indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun substring(startIndex: Int, endIndex: Int): String {
|
||||
AbstractList.checkBoundsIndexes(startIndex, endIndex, length)
|
||||
|
||||
@@ -474,7 +459,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* In Kotlin/JS implementation of StringBuilder the size of the backing storage is always equal to the length of the string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun trimToSize() {
|
||||
}
|
||||
|
||||
@@ -497,7 +481,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* @throws IndexOutOfBoundsException if [index] is out of bounds of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public operator fun set(index: Int, value: Char) {
|
||||
AbstractList.checkElementIndex(index, length)
|
||||
|
||||
@@ -514,7 +497,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] if [startIndex] is less than zero, greater than the length of this string builder, or `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun setRange(startIndex: Int, endIndex: Int, value: String): StringBuilder {
|
||||
checkReplaceRange(startIndex, endIndex, length)
|
||||
|
||||
@@ -541,7 +523,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* @throws IndexOutOfBoundsException if [index] is out of bounds of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun deleteAt(index: Int): StringBuilder {
|
||||
AbstractList.checkElementIndex(index, length)
|
||||
|
||||
@@ -558,7 +539,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] is out of range of this string builder indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun deleteRange(startIndex: Int, endIndex: Int): StringBuilder {
|
||||
checkReplaceRange(startIndex, endIndex, length)
|
||||
|
||||
@@ -579,7 +559,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* or when that index is out of the [destination] array indices range.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun toCharArray(destination: CharArray, destinationOffset: Int = 0, startIndex: Int = 0, endIndex: Int = this.length) {
|
||||
AbstractList.checkBoundsIndexes(startIndex, endIndex, length)
|
||||
AbstractList.checkBoundsIndexes(destinationOffset, destinationOffset + endIndex - startIndex, destination.size)
|
||||
@@ -602,7 +581,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of the [value] array indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun appendRange(value: CharArray, startIndex: Int, endIndex: Int): StringBuilder {
|
||||
string += value.concatToString(startIndex, endIndex)
|
||||
return this
|
||||
@@ -618,7 +596,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of the [value] character sequence indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun appendRange(value: CharSequence, startIndex: Int, endIndex: Int): StringBuilder {
|
||||
val stringCsq = value.toString()
|
||||
AbstractList.checkBoundsIndexes(startIndex, endIndex, stringCsq.length)
|
||||
@@ -641,7 +618,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun insertRange(index: Int, value: CharArray, startIndex: Int, endIndex: Int): StringBuilder {
|
||||
AbstractList.checkPositionIndex(index, this.length)
|
||||
|
||||
@@ -663,7 +639,6 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun insertRange(index: Int, value: CharSequence, startIndex: Int, endIndex: Int): StringBuilder {
|
||||
AbstractList.checkPositionIndex(index, length)
|
||||
|
||||
@@ -691,7 +666,6 @@ public actual inline fun StringBuilder.clear(): StringBuilder = this.clear()
|
||||
* @throws IndexOutOfBoundsException if [index] is out of bounds of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER", "NOTHING_TO_INLINE")
|
||||
public actual inline operator fun StringBuilder.set(index: Int, value: Char) = this.set(index, value)
|
||||
|
||||
@@ -705,7 +679,6 @@ public actual inline operator fun StringBuilder.set(index: Int, value: Char) = t
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] if [startIndex] is less than zero, greater than the length of this string builder, or `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER", "NOTHING_TO_INLINE")
|
||||
public actual inline fun StringBuilder.setRange(startIndex: Int, endIndex: Int, value: String): StringBuilder =
|
||||
this.setRange(startIndex, endIndex, value)
|
||||
@@ -720,7 +693,6 @@ public actual inline fun StringBuilder.setRange(startIndex: Int, endIndex: Int,
|
||||
* @throws IndexOutOfBoundsException if [index] is out of bounds of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER", "NOTHING_TO_INLINE")
|
||||
public actual inline fun StringBuilder.deleteAt(index: Int): StringBuilder = this.deleteAt(index)
|
||||
|
||||
@@ -733,7 +705,6 @@ public actual inline fun StringBuilder.deleteAt(index: Int): StringBuilder = thi
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] is out of range of this string builder indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER", "NOTHING_TO_INLINE")
|
||||
public actual inline fun StringBuilder.deleteRange(startIndex: Int, endIndex: Int): StringBuilder = this.deleteRange(startIndex, endIndex)
|
||||
|
||||
@@ -750,7 +721,6 @@ public actual inline fun StringBuilder.deleteRange(startIndex: Int, endIndex: In
|
||||
* or when that index is out of the [destination] array indices range.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER", "NOTHING_TO_INLINE", "ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
|
||||
public actual inline fun StringBuilder.toCharArray(destination: CharArray, destinationOffset: Int = 0, startIndex: Int = 0, endIndex: Int = this.length) =
|
||||
this.toCharArray(destination, destinationOffset, startIndex, endIndex)
|
||||
@@ -767,7 +737,6 @@ public actual inline fun StringBuilder.toCharArray(destination: CharArray, desti
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of the [value] array indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER", "NOTHING_TO_INLINE")
|
||||
public actual inline fun StringBuilder.appendRange(value: CharArray, startIndex: Int, endIndex: Int): StringBuilder =
|
||||
this.appendRange(value, startIndex, endIndex)
|
||||
@@ -782,7 +751,6 @@ public actual inline fun StringBuilder.appendRange(value: CharArray, startIndex:
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of the [value] character sequence indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER", "NOTHING_TO_INLINE")
|
||||
public actual inline fun StringBuilder.appendRange(value: CharSequence, startIndex: Int, endIndex: Int): StringBuilder =
|
||||
this.appendRange(value, startIndex, endIndex)
|
||||
@@ -801,7 +769,6 @@ public actual inline fun StringBuilder.appendRange(value: CharSequence, startInd
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER", "NOTHING_TO_INLINE")
|
||||
public actual inline fun StringBuilder.insertRange(index: Int, value: CharArray, startIndex: Int, endIndex: Int): StringBuilder =
|
||||
this.insertRange(index, value, startIndex, endIndex)
|
||||
@@ -820,7 +787,6 @@ public actual inline fun StringBuilder.insertRange(index: Int, value: CharArray,
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER", "NOTHING_TO_INLINE")
|
||||
public actual inline fun StringBuilder.insertRange(index: Int, value: CharSequence, startIndex: Int, endIndex: Int): StringBuilder =
|
||||
this.insertRange(index, value, startIndex, endIndex)
|
||||
|
||||
@@ -44,7 +44,6 @@ public actual fun String(chars: CharArray, offset: Int, length: Int): String {
|
||||
* Concatenates characters in this [CharArray] into a String.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun CharArray.concatToString(): String {
|
||||
var result = ""
|
||||
for (char in this) {
|
||||
@@ -63,7 +62,6 @@ public actual fun CharArray.concatToString(): String {
|
||||
* @throws IllegalArgumentException if [startIndex] is greater than [endIndex].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
|
||||
public actual fun CharArray.concatToString(startIndex: Int = 0, endIndex: Int = this.size): String {
|
||||
AbstractList.checkBoundsIndexes(startIndex, endIndex, this.size)
|
||||
@@ -78,7 +76,6 @@ public actual fun CharArray.concatToString(startIndex: Int = 0, endIndex: Int =
|
||||
* Returns a [CharArray] containing characters of this string.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun String.toCharArray(): CharArray {
|
||||
return CharArray(length) { get(it) }
|
||||
}
|
||||
@@ -93,7 +90,6 @@ public actual fun String.toCharArray(): CharArray {
|
||||
* @throws IllegalArgumentException if [startIndex] is greater than [endIndex].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
|
||||
public actual fun String.toCharArray(startIndex: Int = 0, endIndex: Int = this.length): CharArray {
|
||||
AbstractList.checkBoundsIndexes(startIndex, endIndex, length)
|
||||
@@ -136,7 +132,6 @@ public actual fun String.toCharArray(
|
||||
* Malformed byte sequences are replaced by the replacement char `\uFFFD`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun ByteArray.decodeToString(): String {
|
||||
return decodeUtf8(this, 0, size, false)
|
||||
}
|
||||
@@ -153,7 +148,6 @@ public actual fun ByteArray.decodeToString(): String {
|
||||
* @throws CharacterCodingException if the byte array contains malformed UTF-8 byte sequence and [throwOnInvalidSequence] is true.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
|
||||
public actual fun ByteArray.decodeToString(
|
||||
startIndex: Int = 0,
|
||||
@@ -170,7 +164,6 @@ public actual fun ByteArray.decodeToString(
|
||||
* Any malformed char sequence is replaced by the replacement byte sequence.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun String.encodeToByteArray(): ByteArray {
|
||||
return encodeUtf8(this, 0, length, false)
|
||||
}
|
||||
@@ -187,7 +180,6 @@ public actual fun String.encodeToByteArray(): ByteArray {
|
||||
* @throws CharacterCodingException if this string contains malformed char sequence and [throwOnInvalidSequence] is true.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
|
||||
public actual fun String.encodeToByteArray(
|
||||
startIndex: Int = 0,
|
||||
|
||||
@@ -16,5 +16,4 @@ package kotlin.text
|
||||
* The exception thrown when a character encoding or decoding error occurs.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual typealias CharacterCodingException = java.nio.charset.CharacterCodingException
|
||||
@@ -34,7 +34,6 @@ public actual inline operator fun StringBuilder.set(index: Int, value: Char): Un
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] if [startIndex] is less than zero, greater than the length of this string builder, or `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun StringBuilder.setRange(startIndex: Int, endIndex: Int, value: String): StringBuilder =
|
||||
this.replace(startIndex, endIndex, value)
|
||||
@@ -49,7 +48,6 @@ public actual inline fun StringBuilder.setRange(startIndex: Int, endIndex: Int,
|
||||
* @throws IndexOutOfBoundsException if [index] is out of bounds of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun StringBuilder.deleteAt(index: Int): StringBuilder = this.deleteCharAt(index)
|
||||
|
||||
@@ -62,7 +60,6 @@ public actual inline fun StringBuilder.deleteAt(index: Int): StringBuilder = thi
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] is out of range of this string builder indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun StringBuilder.deleteRange(startIndex: Int, endIndex: Int): StringBuilder = this.delete(startIndex, endIndex)
|
||||
|
||||
@@ -79,7 +76,6 @@ public actual inline fun StringBuilder.deleteRange(startIndex: Int, endIndex: In
|
||||
* or when that index is out of the [destination] array indices range.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
|
||||
public actual inline fun StringBuilder.toCharArray(destination: CharArray, destinationOffset: Int = 0, startIndex: Int = 0, endIndex: Int = this.length) =
|
||||
@@ -97,7 +93,6 @@ public actual inline fun StringBuilder.toCharArray(destination: CharArray, desti
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of the [value] array indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun StringBuilder.appendRange(value: CharArray, startIndex: Int, endIndex: Int): StringBuilder =
|
||||
this.append(value, startIndex, endIndex - startIndex)
|
||||
@@ -112,7 +107,6 @@ public actual inline fun StringBuilder.appendRange(value: CharArray, startIndex:
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of the [value] character sequence indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun StringBuilder.appendRange(value: CharSequence, startIndex: Int, endIndex: Int): StringBuilder =
|
||||
this.append(value, startIndex, endIndex)
|
||||
@@ -131,7 +125,6 @@ public actual inline fun StringBuilder.appendRange(value: CharSequence, startInd
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun StringBuilder.insertRange(index: Int, value: CharArray, startIndex: Int, endIndex: Int): StringBuilder =
|
||||
this.insert(index, value, startIndex, endIndex - startIndex)
|
||||
@@ -150,7 +143,6 @@ public actual inline fun StringBuilder.insertRange(index: Int, value: CharArray,
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun StringBuilder.insertRange(index: Int, value: CharSequence, startIndex: Int, endIndex: Int): StringBuilder =
|
||||
this.insert(index, value, startIndex, endIndex)
|
||||
|
||||
@@ -171,7 +171,6 @@ public actual inline fun String.lowercase(): String = (this as java.lang.String)
|
||||
* Concatenates characters in this [CharArray] into a String.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun CharArray.concatToString(): String {
|
||||
return String(this)
|
||||
}
|
||||
@@ -186,7 +185,6 @@ public actual fun CharArray.concatToString(): String {
|
||||
* @throws IllegalArgumentException if [startIndex] is greater than [endIndex].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
|
||||
public actual fun CharArray.concatToString(startIndex: Int = 0, endIndex: Int = this.size): String {
|
||||
AbstractList.checkBoundsIndexes(startIndex, endIndex, this.size)
|
||||
@@ -203,7 +201,6 @@ public actual fun CharArray.concatToString(startIndex: Int = 0, endIndex: Int =
|
||||
* @throws IllegalArgumentException if [startIndex] is greater than [endIndex].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
|
||||
public actual fun String.toCharArray(startIndex: Int = 0, endIndex: Int = this.length): CharArray {
|
||||
AbstractList.checkBoundsIndexes(startIndex, endIndex, length)
|
||||
@@ -216,7 +213,6 @@ public actual fun String.toCharArray(startIndex: Int = 0, endIndex: Int = this.l
|
||||
* Malformed byte sequences are replaced by the replacement char `\uFFFD`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun ByteArray.decodeToString(): String {
|
||||
return String(this)
|
||||
}
|
||||
@@ -233,7 +229,6 @@ public actual fun ByteArray.decodeToString(): String {
|
||||
* @throws CharacterCodingException if the byte array contains malformed UTF-8 byte sequence and [throwOnInvalidSequence] is true.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
|
||||
public actual fun ByteArray.decodeToString(
|
||||
startIndex: Int = 0,
|
||||
@@ -259,7 +254,6 @@ public actual fun ByteArray.decodeToString(
|
||||
* Any malformed char sequence is replaced by the replacement byte sequence.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun String.encodeToByteArray(): ByteArray {
|
||||
return this.toByteArray(Charsets.UTF_8)
|
||||
}
|
||||
@@ -276,7 +270,6 @@ public actual fun String.encodeToByteArray(): ByteArray {
|
||||
* @throws CharacterCodingException if this string contains malformed char sequence and [throwOnInvalidSequence] is true.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
|
||||
public actual fun String.encodeToByteArray(
|
||||
startIndex: Int = 0,
|
||||
@@ -725,7 +718,6 @@ public actual fun String.capitalize(): String {
|
||||
@Deprecated("Use replaceFirstChar instead.", ReplaceWith("replaceFirstChar { if (it.isLowerCase()) it.titlecase(locale) else it.toString() }"))
|
||||
@DeprecatedSinceKotlin(warningSince = "1.5")
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.LowPriorityInOverloadResolution // To avoid conflicts in function references, as this function was introduced later than common capitalize()
|
||||
public fun String.capitalize(locale: Locale): String {
|
||||
if (isNotEmpty()) {
|
||||
@@ -765,7 +757,6 @@ public actual fun String.decapitalize(): String {
|
||||
@Deprecated("Use replaceFirstChar instead.", ReplaceWith("replaceFirstChar { it.lowercase(locale) }"))
|
||||
@DeprecatedSinceKotlin(warningSince = "1.5")
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.LowPriorityInOverloadResolution // To avoid conflicts in function references, as this function was introduced later than common decapitalize()
|
||||
public fun String.decapitalize(locale: Locale): String {
|
||||
return if (isNotEmpty() && !this[0].isLowerCase()) substring(0, 1).lowercase(locale) + substring(1) else this
|
||||
|
||||
@@ -98,7 +98,6 @@ public actual inline fun Float.Companion.fromBits(bits: Int): Float = java.lang.
|
||||
* Counts the number of set bits in the binary representation of this [Int] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun Int.countOneBits(): Int = Integer.bitCount(this)
|
||||
|
||||
@@ -106,7 +105,6 @@ public actual inline fun Int.countOneBits(): Int = Integer.bitCount(this)
|
||||
* Counts the number of consecutive most significant bits that are zero in the binary representation of this [Int] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun Int.countLeadingZeroBits(): Int = Integer.numberOfLeadingZeros(this)
|
||||
|
||||
@@ -114,7 +112,6 @@ public actual inline fun Int.countLeadingZeroBits(): Int = Integer.numberOfLeadi
|
||||
* Counts the number of consecutive least significant bits that are zero in the binary representation of this [Int] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun Int.countTrailingZeroBits(): Int = Integer.numberOfTrailingZeros(this)
|
||||
|
||||
@@ -123,7 +120,6 @@ public actual inline fun Int.countTrailingZeroBits(): Int = Integer.numberOfTrai
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun Int.takeHighestOneBit(): Int = Integer.highestOneBit(this)
|
||||
|
||||
@@ -132,7 +128,6 @@ public actual inline fun Int.takeHighestOneBit(): Int = Integer.highestOneBit(th
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun Int.takeLowestOneBit(): Int = Integer.lowestOneBit(this)
|
||||
|
||||
@@ -172,7 +167,6 @@ public actual inline fun Int.rotateRight(bitCount: Int): Int = Integer.rotateRig
|
||||
* Counts the number of set bits in the binary representation of this [Long] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun Long.countOneBits(): Int = java.lang.Long.bitCount(this)
|
||||
|
||||
@@ -180,7 +174,6 @@ public actual inline fun Long.countOneBits(): Int = java.lang.Long.bitCount(this
|
||||
* Counts the number of consecutive most significant bits that are zero in the binary representation of this [Long] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun Long.countLeadingZeroBits(): Int = java.lang.Long.numberOfLeadingZeros(this)
|
||||
|
||||
@@ -188,7 +181,6 @@ public actual inline fun Long.countLeadingZeroBits(): Int = java.lang.Long.numbe
|
||||
* Counts the number of consecutive least significant bits that are zero in the binary representation of this [Long] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun Long.countTrailingZeroBits(): Int = java.lang.Long.numberOfTrailingZeros(this)
|
||||
|
||||
@@ -197,7 +189,6 @@ public actual inline fun Long.countTrailingZeroBits(): Int = java.lang.Long.numb
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun Long.takeHighestOneBit(): Long = java.lang.Long.highestOneBit(this)
|
||||
|
||||
@@ -206,7 +197,6 @@ public actual inline fun Long.takeHighestOneBit(): Long = java.lang.Long.highest
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun Long.takeLowestOneBit(): Long = java.lang.Long.lowestOneBit(this)
|
||||
|
||||
|
||||
@@ -252,7 +252,6 @@ actual class StringBuilder private constructor (
|
||||
* Returns `-1` if the specified [string] does not occur in this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun indexOf(string: String): Int {
|
||||
return (this as CharSequence).indexOf(string, startIndex = 0, ignoreCase = false)
|
||||
}
|
||||
@@ -264,7 +263,6 @@ actual class StringBuilder private constructor (
|
||||
* Returns `-1` if the specified [string] does not occur in this string builder starting at the specified [startIndex].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun indexOf(string: String, startIndex: Int): Int {
|
||||
if (string.isEmpty() && startIndex >= _length) return _length
|
||||
return (this as CharSequence).indexOf(string, startIndex, ignoreCase = false)
|
||||
@@ -277,7 +275,6 @@ actual class StringBuilder private constructor (
|
||||
* Returns `-1` if the specified [string] does not occur in this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun lastIndexOf(string: String): Int {
|
||||
if (string.isEmpty()) return _length
|
||||
return (this as CharSequence).lastIndexOf(string, startIndex = lastIndex, ignoreCase = false)
|
||||
@@ -290,7 +287,6 @@ actual class StringBuilder private constructor (
|
||||
* Returns `-1` if the specified [string] does not occur in this string builder starting at the specified [startIndex].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun lastIndexOf(string: String, startIndex: Int): Int {
|
||||
if (string.isEmpty() && startIndex >= _length) return _length
|
||||
return (this as CharSequence).lastIndexOf(string, startIndex, ignoreCase = false)
|
||||
@@ -484,7 +480,6 @@ actual class StringBuilder private constructor (
|
||||
* @throws IndexOutOfBoundsException if [startIndex] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
actual fun substring(startIndex: Int): String {
|
||||
return substring(startIndex, _length)
|
||||
}
|
||||
@@ -523,7 +518,6 @@ actual class StringBuilder private constructor (
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] if [startIndex] is less than zero, greater than the length of this string builder, or `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun setRange(startIndex: Int, endIndex: Int, value: String): StringBuilder {
|
||||
checkReplaceRange(startIndex, endIndex, _length)
|
||||
|
||||
@@ -548,7 +542,6 @@ actual class StringBuilder private constructor (
|
||||
* @throws IndexOutOfBoundsException if [index] is out of bounds of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun deleteAt(index: Int): StringBuilder {
|
||||
AbstractList.checkElementIndex(index, _length)
|
||||
array.copyInto(array, startIndex = index + 1, endIndex = _length, destinationOffset = index)
|
||||
@@ -565,7 +558,6 @@ actual class StringBuilder private constructor (
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] is out of range of this string builder indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun deleteRange(startIndex: Int, endIndex: Int): StringBuilder {
|
||||
checkReplaceRange(startIndex, endIndex, _length)
|
||||
|
||||
@@ -588,7 +580,6 @@ actual class StringBuilder private constructor (
|
||||
* or when that index is out of the [destination] array indices range.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun toCharArray(destination: CharArray, destinationOffset: Int = 0, startIndex: Int = 0, endIndex: Int = this.length) {
|
||||
AbstractList.checkBoundsIndexes(startIndex, endIndex, _length)
|
||||
AbstractList.checkBoundsIndexes(destinationOffset, destinationOffset + endIndex - startIndex, destination.size)
|
||||
@@ -608,7 +599,6 @@ actual class StringBuilder private constructor (
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of the [value] array indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun appendRange(value: CharArray, startIndex: Int, endIndex: Int): StringBuilder {
|
||||
AbstractList.checkBoundsIndexes(startIndex, endIndex, value.size)
|
||||
val extraLength = endIndex - startIndex
|
||||
@@ -628,7 +618,6 @@ actual class StringBuilder private constructor (
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of the [value] character sequence indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun appendRange(value: CharSequence, startIndex: Int, endIndex: Int): StringBuilder {
|
||||
AbstractList.checkBoundsIndexes(startIndex, endIndex, value.length)
|
||||
val extraLength = endIndex - startIndex
|
||||
@@ -657,7 +646,6 @@ actual class StringBuilder private constructor (
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun insertRange(index: Int, value: CharSequence, startIndex: Int, endIndex: Int): StringBuilder {
|
||||
AbstractList.checkBoundsIndexes(startIndex, endIndex, value.length)
|
||||
AbstractList.checkPositionIndex(index, _length)
|
||||
@@ -689,7 +677,6 @@ actual class StringBuilder private constructor (
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun insertRange(index: Int, value: CharArray, startIndex: Int, endIndex: Int): StringBuilder {
|
||||
AbstractList.checkPositionIndex(index, _length)
|
||||
AbstractList.checkBoundsIndexes(startIndex, endIndex, value.size)
|
||||
@@ -754,7 +741,6 @@ public actual inline operator fun StringBuilder.set(index: Int, value: Char): Un
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] if [startIndex] is less than zero, greater than the length of this string builder, or `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER")
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun StringBuilder.setRange(startIndex: Int, endIndex: Int, value: String): StringBuilder =
|
||||
@@ -770,7 +756,6 @@ public actual inline fun StringBuilder.setRange(startIndex: Int, endIndex: Int,
|
||||
* @throws IndexOutOfBoundsException if [index] is out of bounds of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER")
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun StringBuilder.deleteAt(index: Int): StringBuilder = this.deleteAt(index)
|
||||
@@ -784,7 +769,6 @@ public actual inline fun StringBuilder.deleteAt(index: Int): StringBuilder = thi
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] is out of range of this string builder indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER")
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun StringBuilder.deleteRange(startIndex: Int, endIndex: Int): StringBuilder = this.deleteRange(startIndex, endIndex)
|
||||
@@ -802,7 +786,6 @@ public actual inline fun StringBuilder.deleteRange(startIndex: Int, endIndex: In
|
||||
* or when that index is out of the [destination] array indices range.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER", "ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun StringBuilder.toCharArray(destination: CharArray, destinationOffset: Int = 0, startIndex: Int = 0, endIndex: Int = this.length) =
|
||||
@@ -820,7 +803,6 @@ public actual inline fun StringBuilder.toCharArray(destination: CharArray, desti
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of the [value] array indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER")
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun StringBuilder.appendRange(value: CharArray, startIndex: Int, endIndex: Int): StringBuilder =
|
||||
@@ -836,7 +818,6 @@ public actual inline fun StringBuilder.appendRange(value: CharArray, startIndex:
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of the [value] character sequence indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER")
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun StringBuilder.appendRange(value: CharSequence, startIndex: Int, endIndex: Int): StringBuilder =
|
||||
@@ -856,7 +837,6 @@ public actual inline fun StringBuilder.appendRange(value: CharSequence, startInd
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER")
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun StringBuilder.insertRange(index: Int, value: CharArray, startIndex: Int, endIndex: Int): StringBuilder =
|
||||
@@ -876,7 +856,6 @@ public actual inline fun StringBuilder.insertRange(index: Int, value: CharArray,
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER")
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun StringBuilder.insertRange(index: Int, value: CharSequence, startIndex: Int, endIndex: Int): StringBuilder =
|
||||
|
||||
@@ -14,7 +14,6 @@ package kotlin.collections
|
||||
* It also implements [MutableList] interface and supports efficient get/set operations by index.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public class ArrayDeque<E> : AbstractMutableList<E> {
|
||||
private var head: Int = 0
|
||||
private var elementData: Array<Any?>
|
||||
|
||||
@@ -242,28 +242,24 @@ public inline fun <T> MutableList<T>.remove(index: Int): T = removeAt(index)
|
||||
* Removes the first element from this mutable list and returns that removed element, or throws [NoSuchElementException] if this list is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun <T> MutableList<T>.removeFirst(): T = if (isEmpty()) throw NoSuchElementException("List is empty.") else removeAt(0)
|
||||
|
||||
/**
|
||||
* Removes the first element from this mutable list and returns that removed element, or returns `null` if this list is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun <T> MutableList<T>.removeFirstOrNull(): T? = if (isEmpty()) null else removeAt(0)
|
||||
|
||||
/**
|
||||
* Removes the last element from this mutable list and returns that removed element, or throws [NoSuchElementException] if this list is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun <T> MutableList<T>.removeLast(): T = if (isEmpty()) throw NoSuchElementException("List is empty.") else removeAt(lastIndex)
|
||||
|
||||
/**
|
||||
* Removes the last element from this mutable list and returns that removed element, or returns `null` if this list is empty.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun <T> MutableList<T>.removeLastOrNull(): T? = if (isEmpty()) null else removeAt(lastIndex)
|
||||
|
||||
/**
|
||||
|
||||
@@ -20,7 +20,6 @@ import kotlin.internal.LowPriorityInOverloadResolution
|
||||
* @see [KClass.safeCast]
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@LowPriorityInOverloadResolution
|
||||
fun <T : Any> KClass<T>.cast(value: Any?): T {
|
||||
if (!isInstance(value)) throw ClassCastException("Value cannot be cast to $qualifiedOrSimpleName")
|
||||
@@ -40,7 +39,6 @@ internal expect val KClass<*>.qualifiedOrSimpleName: String?
|
||||
* @see [KClass.cast]
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@LowPriorityInOverloadResolution
|
||||
fun <T : Any> KClass<T>.safeCast(value: Any?): T? {
|
||||
return if (isInstance(value)) value as T else null
|
||||
|
||||
@@ -49,7 +49,6 @@ expect interface Appendable {
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of the [value] character sequence indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public fun <T : Appendable> T.appendRange(value: CharSequence, startIndex: Int, endIndex: Int): T {
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
return append(value, startIndex, endIndex) as T
|
||||
|
||||
@@ -9,5 +9,4 @@ package kotlin.text
|
||||
* The exception thrown when a character encoding or decoding error occurs.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect open class CharacterCodingException() : Exception
|
||||
@@ -129,7 +129,6 @@ expect class StringBuilder : Appendable, CharSequence {
|
||||
* Characters are appended in order, starting at the index 0.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun append(value: CharArray): StringBuilder
|
||||
|
||||
/**
|
||||
@@ -157,7 +156,6 @@ expect class StringBuilder : Appendable, CharSequence {
|
||||
* Otherwise, this method takes no action and simply returns.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun ensureCapacity(minimumCapacity: Int)
|
||||
|
||||
/**
|
||||
@@ -166,7 +164,6 @@ expect class StringBuilder : Appendable, CharSequence {
|
||||
* Returns `-1` if the specified [string] does not occur in this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun indexOf(string: String): Int
|
||||
|
||||
/**
|
||||
@@ -176,7 +173,6 @@ expect class StringBuilder : Appendable, CharSequence {
|
||||
* Returns `-1` if the specified [string] does not occur in this string builder starting at the specified [startIndex].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun indexOf(string: String, startIndex: Int): Int
|
||||
|
||||
/**
|
||||
@@ -186,7 +182,6 @@ expect class StringBuilder : Appendable, CharSequence {
|
||||
* Returns `-1` if the specified [string] does not occur in this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun lastIndexOf(string: String): Int
|
||||
|
||||
/**
|
||||
@@ -196,7 +191,6 @@ expect class StringBuilder : Appendable, CharSequence {
|
||||
* Returns `-1` if the specified [string] does not occur in this string builder starting at the specified [startIndex].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun lastIndexOf(string: String, startIndex: Int): Int
|
||||
|
||||
/**
|
||||
@@ -208,7 +202,6 @@ expect class StringBuilder : Appendable, CharSequence {
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun insert(index: Int, value: Boolean): StringBuilder
|
||||
|
||||
/**
|
||||
@@ -283,7 +276,6 @@ expect class StringBuilder : Appendable, CharSequence {
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun insert(index: Int, value: Char): StringBuilder
|
||||
|
||||
/**
|
||||
@@ -294,7 +286,6 @@ expect class StringBuilder : Appendable, CharSequence {
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun insert(index: Int, value: CharArray): StringBuilder
|
||||
|
||||
/**
|
||||
@@ -308,7 +299,6 @@ expect class StringBuilder : Appendable, CharSequence {
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun insert(index: Int, value: CharSequence?): StringBuilder
|
||||
|
||||
/**
|
||||
@@ -320,7 +310,6 @@ expect class StringBuilder : Appendable, CharSequence {
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun insert(index: Int, value: Any?): StringBuilder
|
||||
|
||||
/**
|
||||
@@ -331,7 +320,6 @@ expect class StringBuilder : Appendable, CharSequence {
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun insert(index: Int, value: String?): StringBuilder
|
||||
|
||||
/**
|
||||
@@ -346,7 +334,6 @@ expect class StringBuilder : Appendable, CharSequence {
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] if [newLength] is less than zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun setLength(newLength: Int)
|
||||
|
||||
/**
|
||||
@@ -355,7 +342,6 @@ expect class StringBuilder : Appendable, CharSequence {
|
||||
* @throws IndexOutOfBoundsException if [startIndex] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun substring(startIndex: Int): String
|
||||
|
||||
/**
|
||||
@@ -364,7 +350,6 @@ expect class StringBuilder : Appendable, CharSequence {
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this string builder indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun substring(startIndex: Int, endIndex: Int): String
|
||||
|
||||
/**
|
||||
@@ -375,7 +360,6 @@ expect class StringBuilder : Appendable, CharSequence {
|
||||
* Calling this method may, but is not required to, affect the value of the [capacity] property.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
fun trimToSize()
|
||||
}
|
||||
|
||||
@@ -394,7 +378,6 @@ public expect fun StringBuilder.clear(): StringBuilder
|
||||
* @throws IndexOutOfBoundsException if [index] is out of bounds of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect operator fun StringBuilder.set(index: Int, value: Char)
|
||||
|
||||
/**
|
||||
@@ -407,7 +390,6 @@ public expect operator fun StringBuilder.set(index: Int, value: Char)
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] if [startIndex] is less than zero, greater than the length of this string builder, or `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun StringBuilder.setRange(startIndex: Int, endIndex: Int, value: String): StringBuilder
|
||||
|
||||
/**
|
||||
@@ -420,7 +402,6 @@ public expect fun StringBuilder.setRange(startIndex: Int, endIndex: Int, value:
|
||||
* @throws IndexOutOfBoundsException if [index] is out of bounds of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun StringBuilder.deleteAt(index: Int): StringBuilder
|
||||
|
||||
/**
|
||||
@@ -432,7 +413,6 @@ public expect fun StringBuilder.deleteAt(index: Int): StringBuilder
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] is out of range of this string builder indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun StringBuilder.deleteRange(startIndex: Int, endIndex: Int): StringBuilder
|
||||
|
||||
/**
|
||||
@@ -448,7 +428,6 @@ public expect fun StringBuilder.deleteRange(startIndex: Int, endIndex: Int): Str
|
||||
* or when that index is out of the [destination] array indices range.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun StringBuilder.toCharArray(destination: CharArray, destinationOffset: Int = 0, startIndex: Int = 0, endIndex: Int = this.length)
|
||||
|
||||
/**
|
||||
@@ -463,7 +442,6 @@ public expect fun StringBuilder.toCharArray(destination: CharArray, destinationO
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of the [value] array indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun StringBuilder.appendRange(value: CharArray, startIndex: Int, endIndex: Int): StringBuilder
|
||||
|
||||
/**
|
||||
@@ -476,7 +454,6 @@ public expect fun StringBuilder.appendRange(value: CharArray, startIndex: Int, e
|
||||
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of the [value] character sequence indices or when `startIndex > endIndex`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun StringBuilder.appendRange(value: CharSequence, startIndex: Int, endIndex: Int): StringBuilder
|
||||
|
||||
/**
|
||||
@@ -493,7 +470,6 @@ public expect fun StringBuilder.appendRange(value: CharSequence, startIndex: Int
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun StringBuilder.insertRange(index: Int, value: CharArray, startIndex: Int, endIndex: Int): StringBuilder
|
||||
|
||||
/**
|
||||
@@ -510,7 +486,6 @@ public expect fun StringBuilder.insertRange(index: Int, value: CharArray, startI
|
||||
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun StringBuilder.insertRange(index: Int, value: CharSequence, startIndex: Int, endIndex: Int): StringBuilder
|
||||
|
||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER")
|
||||
|
||||
@@ -11,21 +11,18 @@ package kotlin
|
||||
* Counts the number of set bits in the binary representation of this [Int] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun Int.countOneBits(): Int
|
||||
|
||||
/**
|
||||
* Counts the number of consecutive most significant bits that are zero in the binary representation of this [Int] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun Int.countLeadingZeroBits(): Int
|
||||
|
||||
/**
|
||||
* Counts the number of consecutive least significant bits that are zero in the binary representation of this [Int] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun Int.countTrailingZeroBits(): Int
|
||||
|
||||
/**
|
||||
@@ -33,7 +30,6 @@ public expect fun Int.countTrailingZeroBits(): Int
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun Int.takeHighestOneBit(): Int
|
||||
|
||||
/**
|
||||
@@ -41,7 +37,6 @@ public expect fun Int.takeHighestOneBit(): Int
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun Int.takeLowestOneBit(): Int
|
||||
|
||||
/**
|
||||
@@ -78,21 +73,18 @@ public expect fun Int.rotateRight(bitCount: Int): Int
|
||||
* Counts the number of set bits in the binary representation of this [Long] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun Long.countOneBits(): Int
|
||||
|
||||
/**
|
||||
* Counts the number of consecutive most significant bits that are zero in the binary representation of this [Long] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun Long.countLeadingZeroBits(): Int
|
||||
|
||||
/**
|
||||
* Counts the number of consecutive least significant bits that are zero in the binary representation of this [Long] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun Long.countTrailingZeroBits(): Int
|
||||
|
||||
/**
|
||||
@@ -100,7 +92,6 @@ public expect fun Long.countTrailingZeroBits(): Int
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun Long.takeHighestOneBit(): Long
|
||||
|
||||
/**
|
||||
@@ -108,7 +99,6 @@ public expect fun Long.takeHighestOneBit(): Long
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public expect fun Long.takeLowestOneBit(): Long
|
||||
|
||||
/**
|
||||
@@ -143,7 +133,6 @@ public expect fun Long.rotateRight(bitCount: Int): Long
|
||||
* Counts the number of set bits in the binary representation of this [Byte] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun Byte.countOneBits(): Int = (toInt() and 0xFF).countOneBits()
|
||||
|
||||
@@ -151,7 +140,6 @@ public inline fun Byte.countOneBits(): Int = (toInt() and 0xFF).countOneBits()
|
||||
* Counts the number of consecutive most significant bits that are zero in the binary representation of this [Byte] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun Byte.countLeadingZeroBits(): Int = (toInt() and 0xFF).countLeadingZeroBits() - (Int.SIZE_BITS - Byte.SIZE_BITS)
|
||||
|
||||
@@ -159,7 +147,6 @@ public inline fun Byte.countLeadingZeroBits(): Int = (toInt() and 0xFF).countLea
|
||||
* Counts the number of consecutive least significant bits that are zero in the binary representation of this [Byte] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun Byte.countTrailingZeroBits(): Int = (toInt() or 0x100).countTrailingZeroBits()
|
||||
|
||||
@@ -168,7 +155,6 @@ public inline fun Byte.countTrailingZeroBits(): Int = (toInt() or 0x100).countTr
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun Byte.takeHighestOneBit(): Byte = (toInt() and 0xFF).takeHighestOneBit().toByte()
|
||||
|
||||
@@ -177,7 +163,6 @@ public inline fun Byte.takeHighestOneBit(): Byte = (toInt() and 0xFF).takeHighes
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun Byte.takeLowestOneBit(): Byte = toInt().takeLowestOneBit().toByte()
|
||||
|
||||
@@ -216,7 +201,6 @@ public fun Byte.rotateRight(bitCount: Int): Byte =
|
||||
* Counts the number of set bits in the binary representation of this [Short] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun Short.countOneBits(): Int = (toInt() and 0xFFFF).countOneBits()
|
||||
|
||||
@@ -224,7 +208,6 @@ public inline fun Short.countOneBits(): Int = (toInt() and 0xFFFF).countOneBits(
|
||||
* Counts the number of consecutive most significant bits that are zero in the binary representation of this [Short] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun Short.countLeadingZeroBits(): Int =
|
||||
(toInt() and 0xFFFF).countLeadingZeroBits() - (Int.SIZE_BITS - Short.SIZE_BITS)
|
||||
@@ -233,7 +216,6 @@ public inline fun Short.countLeadingZeroBits(): Int =
|
||||
* Counts the number of consecutive least significant bits that are zero in the binary representation of this [Short] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun Short.countTrailingZeroBits(): Int = (toInt() or 0x10000).countTrailingZeroBits()
|
||||
|
||||
@@ -242,7 +224,6 @@ public inline fun Short.countTrailingZeroBits(): Int = (toInt() or 0x10000).coun
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun Short.takeHighestOneBit(): Short = (toInt() and 0xFFFF).takeHighestOneBit().toShort()
|
||||
|
||||
@@ -251,7 +232,6 @@ public inline fun Short.takeHighestOneBit(): Short = (toInt() and 0xFFFF).takeHi
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun Short.takeLowestOneBit(): Short = toInt().takeLowestOneBit().toShort()
|
||||
|
||||
|
||||
@@ -82,7 +82,6 @@ public actual fun String(chars: CharArray, offset: Int, length: Int): String {
|
||||
* Concatenates characters in this [CharArray] into a String.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun CharArray.concatToString(): String {
|
||||
val thisStorage = this.storage
|
||||
val thisLength = thisStorage.len()
|
||||
@@ -101,7 +100,6 @@ public actual fun CharArray.concatToString(): String {
|
||||
* @throws IllegalArgumentException if [startIndex] is greater than [endIndex].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
|
||||
public actual fun CharArray.concatToString(startIndex: Int = 0, endIndex: Int = this.size): String {
|
||||
AbstractList.checkBoundsIndexes(startIndex, endIndex, this.size)
|
||||
@@ -116,7 +114,6 @@ public actual fun CharArray.concatToString(startIndex: Int = 0, endIndex: Int =
|
||||
* Returns a [CharArray] containing characters of this string.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun String.toCharArray(): CharArray {
|
||||
val thisChars = this.chars
|
||||
val thisLength = thisChars.len()
|
||||
@@ -135,7 +132,6 @@ public actual fun String.toCharArray(): CharArray {
|
||||
* @throws IllegalArgumentException if [startIndex] is greater than [endIndex].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
|
||||
public actual fun String.toCharArray(startIndex: Int = 0, endIndex: Int = this.length): CharArray {
|
||||
AbstractList.checkBoundsIndexes(startIndex, endIndex, length)
|
||||
@@ -179,7 +175,6 @@ public actual fun String.toCharArray(
|
||||
* Malformed byte sequences are replaced by the replacement char `\uFFFD`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun ByteArray.decodeToString(): String {
|
||||
return decodeUtf8(this, 0, size, false)
|
||||
}
|
||||
@@ -196,7 +191,6 @@ public actual fun ByteArray.decodeToString(): String {
|
||||
* @throws CharacterCodingException if the byte array contains malformed UTF-8 byte sequence and [throwOnInvalidSequence] is true.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
|
||||
public actual fun ByteArray.decodeToString(
|
||||
startIndex: Int = 0,
|
||||
@@ -213,7 +207,6 @@ public actual fun ByteArray.decodeToString(
|
||||
* Any malformed char sequence is replaced by the replacement byte sequence.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun String.encodeToByteArray(): ByteArray {
|
||||
return encodeUtf8(this, 0, length, false)
|
||||
}
|
||||
@@ -230,7 +223,6 @@ public actual fun String.encodeToByteArray(): ByteArray {
|
||||
* @throws CharacterCodingException if this string contains malformed char sequence and [throwOnInvalidSequence] is true.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
|
||||
public actual fun String.encodeToByteArray(
|
||||
startIndex: Int = 0,
|
||||
|
||||
@@ -1188,7 +1188,6 @@ object Aggregates : TemplateGroupBase() {
|
||||
include(ArraysOfPrimitives, ArraysOfUnsigned, CharSequences)
|
||||
} builder {
|
||||
since("1.4")
|
||||
wasExperimental("ExperimentalStdlibApi")
|
||||
inline()
|
||||
specialFor(ArraysOfUnsigned) { inlineOnly() }
|
||||
|
||||
@@ -1213,7 +1212,6 @@ object Aggregates : TemplateGroupBase() {
|
||||
include(ArraysOfObjects, Iterables, Sequences)
|
||||
} builder {
|
||||
since("1.4")
|
||||
wasExperimental("ExperimentalStdlibApi")
|
||||
inline()
|
||||
|
||||
doc { reduceDoc("reduceOrNull") }
|
||||
@@ -1313,7 +1311,6 @@ object Aggregates : TemplateGroupBase() {
|
||||
include(CharSequences, ArraysOfPrimitives, ArraysOfUnsigned)
|
||||
} builder {
|
||||
since("1.4")
|
||||
wasExperimental("ExperimentalStdlibApi")
|
||||
inline()
|
||||
specialFor(ArraysOfUnsigned) { inlineOnly() }
|
||||
|
||||
@@ -1339,7 +1336,6 @@ object Aggregates : TemplateGroupBase() {
|
||||
include(Lists, ArraysOfObjects)
|
||||
} builder {
|
||||
since("1.4")
|
||||
wasExperimental("ExperimentalStdlibApi")
|
||||
inline()
|
||||
doc { reduceDoc("reduceRightOrNull") }
|
||||
sample("samples.collections.Collections.Aggregates.reduceRightOrNull")
|
||||
@@ -1460,7 +1456,6 @@ object Aggregates : TemplateGroupBase() {
|
||||
include(CharSequences, ArraysOfUnsigned)
|
||||
} builder {
|
||||
since("1.4")
|
||||
wasExperimental("ExperimentalStdlibApi")
|
||||
|
||||
specialFor(Iterables, ArraysOfObjects, CharSequences) { inline() }
|
||||
specialFor(ArraysOfPrimitives, ArraysOfUnsigned) { inlineOnly() }
|
||||
@@ -1558,7 +1553,6 @@ object Aggregates : TemplateGroupBase() {
|
||||
include(CharSequences, ArraysOfUnsigned)
|
||||
} builder {
|
||||
since("1.4")
|
||||
wasExperimental("ExperimentalStdlibApi")
|
||||
|
||||
specialFor(Iterables, ArraysOfObjects, CharSequences) { inline() }
|
||||
specialFor(ArraysOfPrimitives, ArraysOfUnsigned) { inlineOnly() }
|
||||
@@ -1658,7 +1652,6 @@ object Aggregates : TemplateGroupBase() {
|
||||
include(ArraysOfObjects, Iterables, Sequences)
|
||||
} builder {
|
||||
since("1.4")
|
||||
wasExperimental("ExperimentalStdlibApi")
|
||||
|
||||
specialFor(ArraysOfObjects, Iterables) { inline() }
|
||||
|
||||
|
||||
@@ -31,6 +31,9 @@ object Elements : TemplateGroupBase() {
|
||||
sourceFile(SourceFile.URanges)
|
||||
}
|
||||
}
|
||||
if (since?.let { it <= "1.4" } == true) {
|
||||
wasExperimentalAnnotations.clear()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user