diff --git a/kotlin-native/runtime/src/main/kotlin/generated/_ArraysNative.kt b/kotlin-native/runtime/src/main/kotlin/generated/_ArraysNative.kt index 87f60c56136..10b49cbb879 100644 --- a/kotlin-native/runtime/src/main/kotlin/generated/_ArraysNative.kt +++ b/kotlin-native/runtime/src/main/kotlin/generated/_ArraysNative.kt @@ -324,7 +324,7 @@ public actual fun Array?.contentDeepToString(): String { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun Array.contentEquals(other: Array): Boolean { +public infix fun Array.contentEquals(other: Array): Boolean { return this.contentEquals(other) } @@ -338,7 +338,7 @@ public actual infix fun Array.contentEquals(other: Array): Boo @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun ByteArray.contentEquals(other: ByteArray): Boolean { +public infix fun ByteArray.contentEquals(other: ByteArray): Boolean { return this.contentEquals(other) } @@ -352,7 +352,7 @@ public actual infix fun ByteArray.contentEquals(other: ByteArray): Boolean { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun ShortArray.contentEquals(other: ShortArray): Boolean { +public infix fun ShortArray.contentEquals(other: ShortArray): Boolean { return this.contentEquals(other) } @@ -366,7 +366,7 @@ public actual infix fun ShortArray.contentEquals(other: ShortArray): Boolean { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun IntArray.contentEquals(other: IntArray): Boolean { +public infix fun IntArray.contentEquals(other: IntArray): Boolean { return this.contentEquals(other) } @@ -380,7 +380,7 @@ public actual infix fun IntArray.contentEquals(other: IntArray): Boolean { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun LongArray.contentEquals(other: LongArray): Boolean { +public infix fun LongArray.contentEquals(other: LongArray): Boolean { return this.contentEquals(other) } @@ -394,7 +394,7 @@ public actual infix fun LongArray.contentEquals(other: LongArray): Boolean { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun FloatArray.contentEquals(other: FloatArray): Boolean { +public infix fun FloatArray.contentEquals(other: FloatArray): Boolean { return this.contentEquals(other) } @@ -408,7 +408,7 @@ public actual infix fun FloatArray.contentEquals(other: FloatArray): Boolean { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { +public infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { return this.contentEquals(other) } @@ -422,7 +422,7 @@ public actual infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean { +public infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean { return this.contentEquals(other) } @@ -436,7 +436,7 @@ public actual infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun CharArray.contentEquals(other: CharArray): Boolean { +public infix fun CharArray.contentEquals(other: CharArray): Boolean { return this.contentEquals(other) } @@ -608,7 +608,7 @@ public actual infix fun CharArray?.contentEquals(other: CharArray?): Boolean { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun Array.contentHashCode(): Int { +public fun Array.contentHashCode(): Int { return this.contentHashCode() } @@ -618,7 +618,7 @@ public actual fun Array.contentHashCode(): Int { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun ByteArray.contentHashCode(): Int { +public fun ByteArray.contentHashCode(): Int { return this.contentHashCode() } @@ -628,7 +628,7 @@ public actual fun ByteArray.contentHashCode(): Int { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun ShortArray.contentHashCode(): Int { +public fun ShortArray.contentHashCode(): Int { return this.contentHashCode() } @@ -638,7 +638,7 @@ public actual fun ShortArray.contentHashCode(): Int { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun IntArray.contentHashCode(): Int { +public fun IntArray.contentHashCode(): Int { return this.contentHashCode() } @@ -648,7 +648,7 @@ public actual fun IntArray.contentHashCode(): Int { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun LongArray.contentHashCode(): Int { +public fun LongArray.contentHashCode(): Int { return this.contentHashCode() } @@ -658,7 +658,7 @@ public actual fun LongArray.contentHashCode(): Int { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun FloatArray.contentHashCode(): Int { +public fun FloatArray.contentHashCode(): Int { return this.contentHashCode() } @@ -668,7 +668,7 @@ public actual fun FloatArray.contentHashCode(): Int { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun DoubleArray.contentHashCode(): Int { +public fun DoubleArray.contentHashCode(): Int { return this.contentHashCode() } @@ -678,7 +678,7 @@ public actual fun DoubleArray.contentHashCode(): Int { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun BooleanArray.contentHashCode(): Int { +public fun BooleanArray.contentHashCode(): Int { return this.contentHashCode() } @@ -688,7 +688,7 @@ public actual fun BooleanArray.contentHashCode(): Int { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun CharArray.contentHashCode(): Int { +public fun CharArray.contentHashCode(): Int { return this.contentHashCode() } @@ -808,7 +808,7 @@ public actual fun CharArray?.contentHashCode(): Int { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun Array.contentToString(): String { +public fun Array.contentToString(): String { return this.contentToString() } @@ -820,7 +820,7 @@ public actual fun Array.contentToString(): String { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun ByteArray.contentToString(): String { +public fun ByteArray.contentToString(): String { return this.contentToString() } @@ -832,7 +832,7 @@ public actual fun ByteArray.contentToString(): String { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun ShortArray.contentToString(): String { +public fun ShortArray.contentToString(): String { return this.contentToString() } @@ -844,7 +844,7 @@ public actual fun ShortArray.contentToString(): String { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun IntArray.contentToString(): String { +public fun IntArray.contentToString(): String { return this.contentToString() } @@ -856,7 +856,7 @@ public actual fun IntArray.contentToString(): String { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun LongArray.contentToString(): String { +public fun LongArray.contentToString(): String { return this.contentToString() } @@ -868,7 +868,7 @@ public actual fun LongArray.contentToString(): String { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun FloatArray.contentToString(): String { +public fun FloatArray.contentToString(): String { return this.contentToString() } @@ -880,7 +880,7 @@ public actual fun FloatArray.contentToString(): String { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun DoubleArray.contentToString(): String { +public fun DoubleArray.contentToString(): String { return this.contentToString() } @@ -892,7 +892,7 @@ public actual fun DoubleArray.contentToString(): String { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun BooleanArray.contentToString(): String { +public fun BooleanArray.contentToString(): String { return this.contentToString() } @@ -904,7 +904,7 @@ public actual fun BooleanArray.contentToString(): String { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun CharArray.contentToString(): String { +public fun CharArray.contentToString(): String { return this.contentToString() } diff --git a/kotlin-native/runtime/src/main/kotlin/generated/_UArraysNative.kt b/kotlin-native/runtime/src/main/kotlin/generated/_UArraysNative.kt index 0a324df6351..39569d5df95 100644 --- a/kotlin-native/runtime/src/main/kotlin/generated/_UArraysNative.kt +++ b/kotlin-native/runtime/src/main/kotlin/generated/_UArraysNative.kt @@ -125,3 +125,147 @@ public actual fun UShortArray.asList(): List { } } +/** + * Returns `true` if the two specified arrays are *structurally* equal to one another, + * i.e. contain the same number of the same elements in the same order. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public infix fun UIntArray.contentEquals(other: UIntArray): Boolean { + return this.contentEquals(other) +} + +/** + * Returns `true` if the two specified arrays are *structurally* equal to one another, + * i.e. contain the same number of the same elements in the same order. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public infix fun ULongArray.contentEquals(other: ULongArray): Boolean { + return this.contentEquals(other) +} + +/** + * Returns `true` if the two specified arrays are *structurally* equal to one another, + * i.e. contain the same number of the same elements in the same order. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public infix fun UByteArray.contentEquals(other: UByteArray): Boolean { + return this.contentEquals(other) +} + +/** + * Returns `true` if the two specified arrays are *structurally* equal to one another, + * i.e. contain the same number of the same elements in the same order. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public infix fun UShortArray.contentEquals(other: UShortArray): Boolean { + return this.contentEquals(other) +} + +/** + * Returns a hash code based on the contents of this array as if it is [List]. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public fun UIntArray.contentHashCode(): Int { + return this.contentHashCode() +} + +/** + * Returns a hash code based on the contents of this array as if it is [List]. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public fun ULongArray.contentHashCode(): Int { + return this.contentHashCode() +} + +/** + * Returns a hash code based on the contents of this array as if it is [List]. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public fun UByteArray.contentHashCode(): Int { + return this.contentHashCode() +} + +/** + * Returns a hash code based on the contents of this array as if it is [List]. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public fun UShortArray.contentHashCode(): Int { + return this.contentHashCode() +} + +/** + * Returns a string representation of the contents of the specified array as if it is [List]. + * + * @sample samples.collections.Arrays.ContentOperations.contentToString + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public fun UIntArray.contentToString(): String { + return this.contentToString() +} + +/** + * Returns a string representation of the contents of the specified array as if it is [List]. + * + * @sample samples.collections.Arrays.ContentOperations.contentToString + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public fun ULongArray.contentToString(): String { + return this.contentToString() +} + +/** + * Returns a string representation of the contents of the specified array as if it is [List]. + * + * @sample samples.collections.Arrays.ContentOperations.contentToString + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public fun UByteArray.contentToString(): String { + return this.contentToString() +} + +/** + * Returns a string representation of the contents of the specified array as if it is [List]. + * + * @sample samples.collections.Arrays.ContentOperations.contentToString + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public fun UShortArray.contentToString(): String { + return this.contentToString() +} + diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/text/StringNumberConversions.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/text/StringNumberConversions.kt index e81dfb12392..daadd1e6358 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/text/StringNumberConversions.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/text/StringNumberConversions.kt @@ -52,14 +52,6 @@ external internal fun longToString(value: Long, radix: Int): String @kotlin.internal.InlineOnly public actual inline fun Long.toString(radix: Int): String = longToString(this, checkRadix(radix)) -/** - * Returns `true` if the content of this string is equal to the word "true", ignoring case, and `false` otherwise. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun String.toBoolean(): Boolean = this.toBoolean() - /** * Returns `true` if this string is not `null` and its content is equal to the word "true", ignoring case, and `false` otherwise. * diff --git a/libraries/stdlib/api/js-v1/kotlin.collections.kt b/libraries/stdlib/api/js-v1/kotlin.collections.kt index be5389122cb..eda0f7116a1 100644 --- a/libraries/stdlib/api/js-v1/kotlin.collections.kt +++ b/libraries/stdlib/api/js-v1/kotlin.collections.kt @@ -1100,365 +1100,158 @@ public fun kotlin.Array.contentDeepToString(): kotlin.String /*∆*/ @kotlin.js.library(name = "arrayDeepToString") public fun kotlin.Array?.contentDeepToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public infix fun kotlin.Array.contentEquals(other: kotlin.Array): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayEquals") public infix fun kotlin.Array?.contentEquals(other: kotlin.Array?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public infix fun kotlin.BooleanArray.contentEquals(other: kotlin.BooleanArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayEquals") public infix fun kotlin.BooleanArray?.contentEquals(other: kotlin.BooleanArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public infix fun kotlin.ByteArray.contentEquals(other: kotlin.ByteArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayEquals") public infix fun kotlin.ByteArray?.contentEquals(other: kotlin.ByteArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public infix fun kotlin.CharArray.contentEquals(other: kotlin.CharArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayEquals") public infix fun kotlin.CharArray?.contentEquals(other: kotlin.CharArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public infix fun kotlin.DoubleArray.contentEquals(other: kotlin.DoubleArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayEquals") public infix fun kotlin.DoubleArray?.contentEquals(other: kotlin.DoubleArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public infix fun kotlin.FloatArray.contentEquals(other: kotlin.FloatArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayEquals") public infix fun kotlin.FloatArray?.contentEquals(other: kotlin.FloatArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public infix fun kotlin.IntArray.contentEquals(other: kotlin.IntArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayEquals") public infix fun kotlin.IntArray?.contentEquals(other: kotlin.IntArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public infix fun kotlin.LongArray.contentEquals(other: kotlin.LongArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayEquals") public infix fun kotlin.LongArray?.contentEquals(other: kotlin.LongArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public infix fun kotlin.ShortArray.contentEquals(other: kotlin.ShortArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayEquals") public infix fun kotlin.ShortArray?.contentEquals(other: kotlin.ShortArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public infix fun kotlin.UByteArray.contentEquals(other: kotlin.UByteArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.UByteArray?.contentEquals(other: kotlin.UByteArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public infix fun kotlin.UIntArray.contentEquals(other: kotlin.UIntArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.UIntArray?.contentEquals(other: kotlin.UIntArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public infix fun kotlin.ULongArray.contentEquals(other: kotlin.ULongArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.ULongArray?.contentEquals(other: kotlin.ULongArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public infix fun kotlin.UShortArray.contentEquals(other: kotlin.UShortArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.UShortArray?.contentEquals(other: kotlin.UShortArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.Array.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayHashCode") public fun kotlin.Array?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.BooleanArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayHashCode") public fun kotlin.BooleanArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.ByteArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayHashCode") public fun kotlin.ByteArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.CharArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayHashCode") public fun kotlin.CharArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.DoubleArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayHashCode") public fun kotlin.DoubleArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.FloatArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayHashCode") public fun kotlin.FloatArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.IntArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayHashCode") public fun kotlin.IntArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.LongArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayHashCode") public fun kotlin.LongArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.ShortArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayHashCode") public fun kotlin.ShortArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public fun kotlin.UByteArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public fun kotlin.UIntArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public fun kotlin.ULongArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public fun kotlin.UShortArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UShortArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.Array.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayToString") public fun kotlin.Array?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.BooleanArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayToString") public fun kotlin.BooleanArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.ByteArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayToString") public fun kotlin.ByteArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.CharArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayToString") public fun kotlin.CharArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.DoubleArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayToString") public fun kotlin.DoubleArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.FloatArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayToString") public fun kotlin.FloatArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.IntArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayToString") public fun kotlin.IntArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.LongArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayToString") public fun kotlin.LongArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.ShortArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayToString") public fun kotlin.ShortArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public fun kotlin.UByteArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public fun kotlin.UIntArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public fun kotlin.ULongArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public fun kotlin.UShortArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UShortArray?.contentToString(): kotlin.String diff --git a/libraries/stdlib/api/js-v1/kotlin.text.kt b/libraries/stdlib/api/js-v1/kotlin.text.kt index 15952c328ae..e98ea30aa5c 100644 --- a/libraries/stdlib/api/js-v1/kotlin.text.kt +++ b/libraries/stdlib/api/js-v1/kotlin.text.kt @@ -1005,11 +1005,6 @@ public fun kotlin.Char.titlecase(): kotlin.String @kotlin.SinceKotlin(version = "1.5") public fun kotlin.Char.titlecaseChar(): kotlin.Char -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public inline fun kotlin.String.toBoolean(): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.String?.toBoolean(): kotlin.Boolean diff --git a/libraries/stdlib/api/js/kotlin.collections.kt b/libraries/stdlib/api/js/kotlin.collections.kt index d4eba6c1a9e..ed9eda52010 100644 --- a/libraries/stdlib/api/js/kotlin.collections.kt +++ b/libraries/stdlib/api/js/kotlin.collections.kt @@ -1097,338 +1097,131 @@ public fun kotlin.Array.contentDeepToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") public fun kotlin.Array?.contentDeepToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public infix fun kotlin.Array.contentEquals(other: kotlin.Array): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") public infix fun kotlin.Array?.contentEquals(other: kotlin.Array?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public infix fun kotlin.BooleanArray.contentEquals(other: kotlin.BooleanArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") public infix fun kotlin.BooleanArray?.contentEquals(other: kotlin.BooleanArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public infix fun kotlin.ByteArray.contentEquals(other: kotlin.ByteArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") public infix fun kotlin.ByteArray?.contentEquals(other: kotlin.ByteArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public infix fun kotlin.CharArray.contentEquals(other: kotlin.CharArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") public infix fun kotlin.CharArray?.contentEquals(other: kotlin.CharArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public infix fun kotlin.DoubleArray.contentEquals(other: kotlin.DoubleArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") public infix fun kotlin.DoubleArray?.contentEquals(other: kotlin.DoubleArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public infix fun kotlin.FloatArray.contentEquals(other: kotlin.FloatArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") public infix fun kotlin.FloatArray?.contentEquals(other: kotlin.FloatArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public infix fun kotlin.IntArray.contentEquals(other: kotlin.IntArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") public infix fun kotlin.IntArray?.contentEquals(other: kotlin.IntArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public infix fun kotlin.LongArray.contentEquals(other: kotlin.LongArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") public infix fun kotlin.LongArray?.contentEquals(other: kotlin.LongArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public infix fun kotlin.ShortArray.contentEquals(other: kotlin.ShortArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") public infix fun kotlin.ShortArray?.contentEquals(other: kotlin.ShortArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public infix fun kotlin.UByteArray.contentEquals(other: kotlin.UByteArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.UByteArray?.contentEquals(other: kotlin.UByteArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public infix fun kotlin.UIntArray.contentEquals(other: kotlin.UIntArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.UIntArray?.contentEquals(other: kotlin.UIntArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public infix fun kotlin.ULongArray.contentEquals(other: kotlin.ULongArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.ULongArray?.contentEquals(other: kotlin.ULongArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public infix fun kotlin.UShortArray.contentEquals(other: kotlin.UShortArray): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.UShortArray?.contentEquals(other: kotlin.UShortArray?): kotlin.Boolean -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.Array.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.Array?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.BooleanArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.BooleanArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.ByteArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.ByteArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.CharArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.CharArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.DoubleArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.DoubleArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.FloatArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.FloatArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.IntArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.IntArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.LongArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.LongArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.ShortArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.ShortArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public fun kotlin.UByteArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public fun kotlin.UIntArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public fun kotlin.ULongArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public fun kotlin.UShortArray.contentHashCode(): kotlin.Int - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UShortArray?.contentHashCode(): kotlin.Int -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.Array.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.Array?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.BooleanArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.BooleanArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.ByteArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.ByteArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.CharArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.CharArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.DoubleArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.DoubleArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.FloatArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.FloatArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.IntArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.IntArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.LongArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.LongArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.1") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -public fun kotlin.ShortArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.ShortArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public fun kotlin.UByteArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public fun kotlin.UIntArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public fun kotlin.ULongArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray?.contentToString(): kotlin.String -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.SinceKotlin(version = "1.3") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.ExperimentalUnsignedTypes -public fun kotlin.UShortArray.contentToString(): kotlin.String - @kotlin.SinceKotlin(version = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UShortArray?.contentToString(): kotlin.String diff --git a/libraries/stdlib/api/js/kotlin.text.kt b/libraries/stdlib/api/js/kotlin.text.kt index 15952c328ae..e98ea30aa5c 100644 --- a/libraries/stdlib/api/js/kotlin.text.kt +++ b/libraries/stdlib/api/js/kotlin.text.kt @@ -1005,11 +1005,6 @@ public fun kotlin.Char.titlecase(): kotlin.String @kotlin.SinceKotlin(version = "1.5") public fun kotlin.Char.titlecaseChar(): kotlin.Char -@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") -@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public inline fun kotlin.String.toBoolean(): kotlin.Boolean - @kotlin.SinceKotlin(version = "1.4") public fun kotlin.String?.toBoolean(): kotlin.Boolean diff --git a/libraries/stdlib/common/src/generated/_Arrays.kt b/libraries/stdlib/common/src/generated/_Arrays.kt index 3c429e55ea2..349c42cdfe3 100644 --- a/libraries/stdlib/common/src/generated/_Arrays.kt +++ b/libraries/stdlib/common/src/generated/_Arrays.kt @@ -6820,114 +6820,6 @@ public expect fun Array.contentDeepToString(): String @SinceKotlin("1.4") public expect fun Array?.contentDeepToString(): String -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect infix fun Array.contentEquals(other: Array): Boolean - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect infix fun ByteArray.contentEquals(other: ByteArray): Boolean - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect infix fun ShortArray.contentEquals(other: ShortArray): Boolean - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect infix fun IntArray.contentEquals(other: IntArray): Boolean - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect infix fun LongArray.contentEquals(other: LongArray): Boolean - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect infix fun FloatArray.contentEquals(other: FloatArray): Boolean - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect infix fun CharArray.contentEquals(other: CharArray): Boolean - /** * Returns `true` if the two specified arrays are *structurally* equal to one another, * i.e. contain the same number of the same elements in the same order. @@ -7018,78 +6910,6 @@ public expect infix fun BooleanArray?.contentEquals(other: BooleanArray?): Boole @SinceKotlin("1.4") public expect infix fun CharArray?.contentEquals(other: CharArray?): Boolean -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect fun Array.contentHashCode(): Int - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect fun ByteArray.contentHashCode(): Int - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect fun ShortArray.contentHashCode(): Int - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect fun IntArray.contentHashCode(): Int - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect fun LongArray.contentHashCode(): Int - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect fun FloatArray.contentHashCode(): Int - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect fun DoubleArray.contentHashCode(): Int - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect fun BooleanArray.contentHashCode(): Int - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect fun CharArray.contentHashCode(): Int - /** * Returns a hash code based on the contents of this array as if it is [List]. */ @@ -7144,96 +6964,6 @@ public expect fun BooleanArray?.contentHashCode(): Int @SinceKotlin("1.4") public expect fun CharArray?.contentHashCode(): Int -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect fun Array.contentToString(): String - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect fun ByteArray.contentToString(): String - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect fun ShortArray.contentToString(): String - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect fun IntArray.contentToString(): String - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect fun LongArray.contentToString(): String - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect fun FloatArray.contentToString(): String - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect fun DoubleArray.contentToString(): String - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect fun BooleanArray.contentToString(): String - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public expect fun CharArray.contentToString(): String - /** * Returns a string representation of the contents of the specified array as if it is [List]. * diff --git a/libraries/stdlib/common/src/generated/_UArrays.kt b/libraries/stdlib/common/src/generated/_UArrays.kt index 772c9be1b2c..1e38de34cf6 100644 --- a/libraries/stdlib/common/src/generated/_UArrays.kt +++ b/libraries/stdlib/common/src/generated/_UArrays.kt @@ -3290,54 +3290,6 @@ public inline fun ShortArray.asUShortArray(): UShortArray { return UShortArray(this) } -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.3") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@ExperimentalUnsignedTypes -public infix fun UIntArray.contentEquals(other: UIntArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.3") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@ExperimentalUnsignedTypes -public infix fun ULongArray.contentEquals(other: ULongArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.3") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@ExperimentalUnsignedTypes -public infix fun UByteArray.contentEquals(other: UByteArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.3") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@ExperimentalUnsignedTypes -public infix fun UShortArray.contentEquals(other: UShortArray): Boolean { - return this.contentEquals(other) -} - /** * Returns `true` if the two specified arrays are *structurally* equal to one another, * i.e. contain the same number of the same elements in the same order. @@ -3378,50 +3330,6 @@ public infix fun UShortArray?.contentEquals(other: UShortArray?): Boolean { return this?.storage.contentEquals(other?.storage) } -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.3") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@ExperimentalUnsignedTypes -public fun UIntArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.3") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@ExperimentalUnsignedTypes -public fun ULongArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.3") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@ExperimentalUnsignedTypes -public fun UByteArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.3") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@ExperimentalUnsignedTypes -public fun UShortArray.contentHashCode(): Int { - return this.contentHashCode() -} - /** * Returns a hash code based on the contents of this array as if it is [List]. */ @@ -3458,58 +3366,6 @@ public fun UShortArray?.contentHashCode(): Int { return this?.storage.contentHashCode() } -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.3") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@ExperimentalUnsignedTypes -public fun UIntArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.3") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@ExperimentalUnsignedTypes -public fun ULongArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.3") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@ExperimentalUnsignedTypes -public fun UByteArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.3") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@ExperimentalUnsignedTypes -public fun UShortArray.contentToString(): String { - return this.contentToString() -} - /** * Returns a string representation of the contents of the specified array as if it is [List]. * diff --git a/libraries/stdlib/common/src/kotlin/TextH.kt b/libraries/stdlib/common/src/kotlin/TextH.kt index c1e248992ad..644fd38a42e 100644 --- a/libraries/stdlib/common/src/kotlin/TextH.kt +++ b/libraries/stdlib/common/src/kotlin/TextH.kt @@ -337,15 +337,6 @@ public expect fun String.regionMatches( @SinceKotlin("1.2") public expect val String.Companion.CASE_INSENSITIVE_ORDER: Comparator - -/** - * Returns `true` if the content of this string is equal to the word "true", ignoring case, and `false` otherwise. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public expect fun String.toBoolean(): Boolean - /** * Returns `true` if this string is not `null` and its content is equal to the word "true", ignoring case, and `false` otherwise. * diff --git a/libraries/stdlib/js-ir/src/generated/_ArraysJs.kt b/libraries/stdlib/js-ir/src/generated/_ArraysJs.kt index bb9680d1100..e8f3f624503 100644 --- a/libraries/stdlib/js-ir/src/generated/_ArraysJs.kt +++ b/libraries/stdlib/js-ir/src/generated/_ArraysJs.kt @@ -270,132 +270,6 @@ public actual fun Array?.contentDeepToString(): String { return contentDeepToStringImpl() } -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun Array.contentEquals(other: Array): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun ByteArray.contentEquals(other: ByteArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun ShortArray.contentEquals(other: ShortArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun IntArray.contentEquals(other: IntArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun LongArray.contentEquals(other: LongArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun FloatArray.contentEquals(other: FloatArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun CharArray.contentEquals(other: CharArray): Boolean { - return this.contentEquals(other) -} - /** * Returns `true` if the two specified arrays are *structurally* equal to one another, * i.e. contain the same number of the same elements in the same order. @@ -504,96 +378,6 @@ public actual infix fun CharArray?.contentEquals(other: CharArray?): Boolean { return contentEqualsInternal(other) } -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun Array.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun ByteArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun ShortArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun IntArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun LongArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun FloatArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun DoubleArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun BooleanArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun CharArray.contentHashCode(): Int { - return this.contentHashCode() -} - /** * Returns a hash code based on the contents of this array as if it is [List]. */ @@ -666,114 +450,6 @@ public actual fun CharArray?.contentHashCode(): Int { return contentHashCodeInternal() } -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun Array.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun ByteArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun ShortArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun IntArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun LongArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun FloatArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun DoubleArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun BooleanArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun CharArray.contentToString(): String { - return this.contentToString() -} - /** * Returns a string representation of the contents of the specified array as if it is [List]. * diff --git a/libraries/stdlib/js/src/generated/_ArraysJs.kt b/libraries/stdlib/js/src/generated/_ArraysJs.kt index 5dbbb1257c0..2140ac0cbc3 100644 --- a/libraries/stdlib/js/src/generated/_ArraysJs.kt +++ b/libraries/stdlib/js/src/generated/_ArraysJs.kt @@ -273,132 +273,6 @@ public actual fun Array?.contentDeepToString(): String { definedExternally } -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun Array.contentEquals(other: Array): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun ByteArray.contentEquals(other: ByteArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun ShortArray.contentEquals(other: ShortArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun IntArray.contentEquals(other: IntArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun LongArray.contentEquals(other: LongArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun FloatArray.contentEquals(other: FloatArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun CharArray.contentEquals(other: CharArray): Boolean { - return this.contentEquals(other) -} - /** * Returns `true` if the two specified arrays are *structurally* equal to one another, * i.e. contain the same number of the same elements in the same order. @@ -516,96 +390,6 @@ public actual infix fun CharArray?.contentEquals(other: CharArray?): Boolean { definedExternally } -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun Array.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun ByteArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun ShortArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun IntArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun LongArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun FloatArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun DoubleArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun BooleanArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun CharArray.contentHashCode(): Int { - return this.contentHashCode() -} - /** * Returns a hash code based on the contents of this array as if it is [List]. */ @@ -687,114 +471,6 @@ public actual fun CharArray?.contentHashCode(): Int { definedExternally } -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun Array.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun ByteArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun ShortArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun IntArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun LongArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun FloatArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun DoubleArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun BooleanArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun CharArray.contentToString(): String { - return this.contentToString() -} - /** * Returns a string representation of the contents of the specified array as if it is [List]. * diff --git a/libraries/stdlib/js/src/kotlin/text/numberConversions.kt b/libraries/stdlib/js/src/kotlin/text/numberConversions.kt index dfc4b16dd4e..157cf1fe941 100644 --- a/libraries/stdlib/js/src/kotlin/text/numberConversions.kt +++ b/libraries/stdlib/js/src/kotlin/text/numberConversions.kt @@ -6,14 +6,6 @@ package kotlin.text -/** - * Returns `true` if the content of this string is equal to the word "true", ignoring case, and `false` otherwise. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun String.toBoolean(): Boolean = this.toBoolean() - /** * Returns `true` if this string is not `null` and its content is equal to the word "true", ignoring case, and `false` otherwise. * diff --git a/libraries/stdlib/jvm/src/generated/_ArraysJvm.kt b/libraries/stdlib/jvm/src/generated/_ArraysJvm.kt index 7fd341f8d43..d76455845d5 100644 --- a/libraries/stdlib/jvm/src/generated/_ArraysJvm.kt +++ b/libraries/stdlib/jvm/src/generated/_ArraysJvm.kt @@ -550,141 +550,6 @@ public actual inline fun Array?.contentDeepToString(): String { return java.util.Arrays.deepToString(this) } -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline infix fun Array.contentEquals(other: Array): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline infix fun ByteArray.contentEquals(other: ByteArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline infix fun ShortArray.contentEquals(other: ShortArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline infix fun IntArray.contentEquals(other: IntArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline infix fun LongArray.contentEquals(other: LongArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline infix fun FloatArray.contentEquals(other: FloatArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean { - return this.contentEquals(other) -} - -/** - * Returns `true` if the two specified arrays are *structurally* equal to one another, - * i.e. contain the same number of the same elements in the same order. - * - * The elements are compared for equality with the [equals][Any.equals] function. - * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline infix fun CharArray.contentEquals(other: CharArray): Boolean { - return this.contentEquals(other) -} - /** * Returns `true` if the two specified arrays are *structurally* equal to one another, * i.e. contain the same number of the same elements in the same order. @@ -693,7 +558,6 @@ public actual inline infix fun CharArray.contentEquals(other: CharArray): Boolea * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ @SinceKotlin("1.4") -@JvmName("contentEqualsNullable") @kotlin.internal.InlineOnly public actual inline infix fun Array?.contentEquals(other: Array?): Boolean { return java.util.Arrays.equals(this, other) @@ -707,7 +571,6 @@ public actual inline infix fun Array?.contentEquals(other: Array Array.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun ByteArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun ShortArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun IntArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun LongArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun FloatArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun DoubleArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun BooleanArray.contentHashCode(): Int { - return this.contentHashCode() -} - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun CharArray.contentHashCode(): Int { - return this.contentHashCode() -} - /** * Returns a hash code based on the contents of this array as if it is [List]. */ @SinceKotlin("1.4") -@JvmName("contentHashCodeNullable") @kotlin.internal.InlineOnly public actual inline fun Array?.contentHashCode(): Int { return java.util.Arrays.hashCode(this) @@ -924,7 +680,6 @@ public actual inline fun Array?.contentHashCode(): Int { * Returns a hash code based on the contents of this array as if it is [List]. */ @SinceKotlin("1.4") -@JvmName("contentHashCodeNullable") @kotlin.internal.InlineOnly public actual inline fun ByteArray?.contentHashCode(): Int { return java.util.Arrays.hashCode(this) @@ -934,7 +689,6 @@ public actual inline fun ByteArray?.contentHashCode(): Int { * Returns a hash code based on the contents of this array as if it is [List]. */ @SinceKotlin("1.4") -@JvmName("contentHashCodeNullable") @kotlin.internal.InlineOnly public actual inline fun ShortArray?.contentHashCode(): Int { return java.util.Arrays.hashCode(this) @@ -944,7 +698,6 @@ public actual inline fun ShortArray?.contentHashCode(): Int { * Returns a hash code based on the contents of this array as if it is [List]. */ @SinceKotlin("1.4") -@JvmName("contentHashCodeNullable") @kotlin.internal.InlineOnly public actual inline fun IntArray?.contentHashCode(): Int { return java.util.Arrays.hashCode(this) @@ -954,7 +707,6 @@ public actual inline fun IntArray?.contentHashCode(): Int { * Returns a hash code based on the contents of this array as if it is [List]. */ @SinceKotlin("1.4") -@JvmName("contentHashCodeNullable") @kotlin.internal.InlineOnly public actual inline fun LongArray?.contentHashCode(): Int { return java.util.Arrays.hashCode(this) @@ -964,7 +716,6 @@ public actual inline fun LongArray?.contentHashCode(): Int { * Returns a hash code based on the contents of this array as if it is [List]. */ @SinceKotlin("1.4") -@JvmName("contentHashCodeNullable") @kotlin.internal.InlineOnly public actual inline fun FloatArray?.contentHashCode(): Int { return java.util.Arrays.hashCode(this) @@ -974,7 +725,6 @@ public actual inline fun FloatArray?.contentHashCode(): Int { * Returns a hash code based on the contents of this array as if it is [List]. */ @SinceKotlin("1.4") -@JvmName("contentHashCodeNullable") @kotlin.internal.InlineOnly public actual inline fun DoubleArray?.contentHashCode(): Int { return java.util.Arrays.hashCode(this) @@ -984,7 +734,6 @@ public actual inline fun DoubleArray?.contentHashCode(): Int { * Returns a hash code based on the contents of this array as if it is [List]. */ @SinceKotlin("1.4") -@JvmName("contentHashCodeNullable") @kotlin.internal.InlineOnly public actual inline fun BooleanArray?.contentHashCode(): Int { return java.util.Arrays.hashCode(this) @@ -994,136 +743,17 @@ public actual inline fun BooleanArray?.contentHashCode(): Int { * Returns a hash code based on the contents of this array as if it is [List]. */ @SinceKotlin("1.4") -@JvmName("contentHashCodeNullable") @kotlin.internal.InlineOnly public actual inline fun CharArray?.contentHashCode(): Int { return java.util.Arrays.hashCode(this) } -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun Array.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun ByteArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun ShortArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun IntArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun LongArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun FloatArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun DoubleArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun BooleanArray.contentToString(): String { - return this.contentToString() -} - -/** - * Returns a string representation of the contents of the specified array as if it is [List]. - * - * @sample samples.collections.Arrays.ContentOperations.contentToString - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@SinceKotlin("1.1") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun CharArray.contentToString(): String { - return this.contentToString() -} - /** * Returns a string representation of the contents of the specified array as if it is [List]. * * @sample samples.collections.Arrays.ContentOperations.contentToString */ @SinceKotlin("1.4") -@JvmName("contentToStringNullable") @kotlin.internal.InlineOnly public actual inline fun Array?.contentToString(): String { return java.util.Arrays.toString(this) @@ -1135,7 +765,6 @@ public actual inline fun Array?.contentToString(): String { * @sample samples.collections.Arrays.ContentOperations.contentToString */ @SinceKotlin("1.4") -@JvmName("contentToStringNullable") @kotlin.internal.InlineOnly public actual inline fun ByteArray?.contentToString(): String { return java.util.Arrays.toString(this) @@ -1147,7 +776,6 @@ public actual inline fun ByteArray?.contentToString(): String { * @sample samples.collections.Arrays.ContentOperations.contentToString */ @SinceKotlin("1.4") -@JvmName("contentToStringNullable") @kotlin.internal.InlineOnly public actual inline fun ShortArray?.contentToString(): String { return java.util.Arrays.toString(this) @@ -1159,7 +787,6 @@ public actual inline fun ShortArray?.contentToString(): String { * @sample samples.collections.Arrays.ContentOperations.contentToString */ @SinceKotlin("1.4") -@JvmName("contentToStringNullable") @kotlin.internal.InlineOnly public actual inline fun IntArray?.contentToString(): String { return java.util.Arrays.toString(this) @@ -1171,7 +798,6 @@ public actual inline fun IntArray?.contentToString(): String { * @sample samples.collections.Arrays.ContentOperations.contentToString */ @SinceKotlin("1.4") -@JvmName("contentToStringNullable") @kotlin.internal.InlineOnly public actual inline fun LongArray?.contentToString(): String { return java.util.Arrays.toString(this) @@ -1183,7 +809,6 @@ public actual inline fun LongArray?.contentToString(): String { * @sample samples.collections.Arrays.ContentOperations.contentToString */ @SinceKotlin("1.4") -@JvmName("contentToStringNullable") @kotlin.internal.InlineOnly public actual inline fun FloatArray?.contentToString(): String { return java.util.Arrays.toString(this) @@ -1195,7 +820,6 @@ public actual inline fun FloatArray?.contentToString(): String { * @sample samples.collections.Arrays.ContentOperations.contentToString */ @SinceKotlin("1.4") -@JvmName("contentToStringNullable") @kotlin.internal.InlineOnly public actual inline fun DoubleArray?.contentToString(): String { return java.util.Arrays.toString(this) @@ -1207,7 +831,6 @@ public actual inline fun DoubleArray?.contentToString(): String { * @sample samples.collections.Arrays.ContentOperations.contentToString */ @SinceKotlin("1.4") -@JvmName("contentToStringNullable") @kotlin.internal.InlineOnly public actual inline fun BooleanArray?.contentToString(): String { return java.util.Arrays.toString(this) @@ -1219,7 +842,6 @@ public actual inline fun BooleanArray?.contentToString(): String { * @sample samples.collections.Arrays.ContentOperations.contentToString */ @SinceKotlin("1.4") -@JvmName("contentToStringNullable") @kotlin.internal.InlineOnly public actual inline fun CharArray?.contentToString(): String { return java.util.Arrays.toString(this) diff --git a/libraries/stdlib/jvm/src/kotlin/text/StringNumberConversionsJVM.kt b/libraries/stdlib/jvm/src/kotlin/text/StringNumberConversionsJVM.kt index d334aa63008..03fbb43e8b9 100644 --- a/libraries/stdlib/jvm/src/kotlin/text/StringNumberConversionsJVM.kt +++ b/libraries/stdlib/jvm/src/kotlin/text/StringNumberConversionsJVM.kt @@ -45,20 +45,11 @@ public actual inline fun Int.toString(radix: Int): String = java.lang.Integer.to @kotlin.internal.InlineOnly public actual inline fun Long.toString(radix: Int): String = java.lang.Long.toString(this, checkRadix(radix)) -/** - * Returns `true` if the content of this string is equal to the word "true", ignoring case, and `false` otherwise. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public actual inline fun String.toBoolean(): Boolean = this.toBoolean() - /** * Returns `true` if this string is not `null` and its content is equal to the word "true", ignoring case, and `false` otherwise. * * There are also strict versions of the function available on non-nullable String, [toBooleanStrict] and [toBooleanStrictOrNull]. */ -@JvmName("toBooleanNullable") @SinceKotlin("1.4") @kotlin.internal.InlineOnly public actual inline fun String?.toBoolean(): Boolean = java.lang.Boolean.parseBoolean(this) diff --git a/libraries/stdlib/jvm/src/kotlin/text/StringsJVM.kt b/libraries/stdlib/jvm/src/kotlin/text/StringsJVM.kt index 5b1777f2538..5be725b3076 100644 --- a/libraries/stdlib/jvm/src/kotlin/text/StringsJVM.kt +++ b/libraries/stdlib/jvm/src/kotlin/text/StringsJVM.kt @@ -340,40 +340,19 @@ public inline fun String.format(vararg args: Any?): String = java.lang.String.fo @kotlin.internal.InlineOnly public inline fun String.Companion.format(format: String, vararg args: Any?): String = java.lang.String.format(format, *args) -/** - * Uses this string as a format string and returns a string obtained by substituting the specified arguments, - * using the specified locale. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public inline fun String.format(locale: Locale, vararg args: Any?): String = java.lang.String.format(locale, this, *args) - /** * Uses this string as a format string and returns a string obtained by substituting the specified arguments, * using the specified locale. If [locale] is `null` then no localization is applied. */ @SinceKotlin("1.4") -@JvmName("formatNullable") @kotlin.internal.InlineOnly public inline fun String.format(locale: Locale?, vararg args: Any?): String = java.lang.String.format(locale, this, *args) -/** - * Uses the provided [format] as a format string and returns a string obtained by substituting the specified arguments, - * using the specified locale. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -public inline fun String.Companion.format(locale: Locale, format: String, vararg args: Any?): String = - java.lang.String.format(locale, format, *args) - /** * Uses the provided [format] as a format string and returns a string obtained by substituting the specified arguments, * using the specified locale. If [locale] is `null` then no localization is applied. */ @SinceKotlin("1.4") -@JvmName("formatNullable") @kotlin.internal.InlineOnly public inline fun String.Companion.format(locale: Locale?, format: String, vararg args: Any?): String = java.lang.String.format(locale, format, *args) diff --git a/libraries/stdlib/wasm/src/generated/_ArraysWasm.kt b/libraries/stdlib/wasm/src/generated/_ArraysWasm.kt index ac98450d398..6205cf691ee 100644 --- a/libraries/stdlib/wasm/src/generated/_ArraysWasm.kt +++ b/libraries/stdlib/wasm/src/generated/_ArraysWasm.kt @@ -324,7 +324,7 @@ public actual fun Array?.contentDeepToString(): String { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun Array.contentEquals(other: Array): Boolean { +public infix fun Array.contentEquals(other: Array): Boolean { return this.contentEquals(other) } @@ -338,7 +338,7 @@ public actual infix fun Array.contentEquals(other: Array): Boo @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun ByteArray.contentEquals(other: ByteArray): Boolean { +public infix fun ByteArray.contentEquals(other: ByteArray): Boolean { return this.contentEquals(other) } @@ -352,7 +352,7 @@ public actual infix fun ByteArray.contentEquals(other: ByteArray): Boolean { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun ShortArray.contentEquals(other: ShortArray): Boolean { +public infix fun ShortArray.contentEquals(other: ShortArray): Boolean { return this.contentEquals(other) } @@ -366,7 +366,7 @@ public actual infix fun ShortArray.contentEquals(other: ShortArray): Boolean { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun IntArray.contentEquals(other: IntArray): Boolean { +public infix fun IntArray.contentEquals(other: IntArray): Boolean { return this.contentEquals(other) } @@ -380,7 +380,7 @@ public actual infix fun IntArray.contentEquals(other: IntArray): Boolean { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun LongArray.contentEquals(other: LongArray): Boolean { +public infix fun LongArray.contentEquals(other: LongArray): Boolean { return this.contentEquals(other) } @@ -394,7 +394,7 @@ public actual infix fun LongArray.contentEquals(other: LongArray): Boolean { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun FloatArray.contentEquals(other: FloatArray): Boolean { +public infix fun FloatArray.contentEquals(other: FloatArray): Boolean { return this.contentEquals(other) } @@ -408,7 +408,7 @@ public actual infix fun FloatArray.contentEquals(other: FloatArray): Boolean { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { +public infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { return this.contentEquals(other) } @@ -422,7 +422,7 @@ public actual infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean { +public infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean { return this.contentEquals(other) } @@ -436,7 +436,7 @@ public actual infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual infix fun CharArray.contentEquals(other: CharArray): Boolean { +public infix fun CharArray.contentEquals(other: CharArray): Boolean { return this.contentEquals(other) } @@ -608,7 +608,7 @@ public actual infix fun CharArray?.contentEquals(other: CharArray?): Boolean { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun Array.contentHashCode(): Int { +public fun Array.contentHashCode(): Int { return this.contentHashCode() } @@ -618,7 +618,7 @@ public actual fun Array.contentHashCode(): Int { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun ByteArray.contentHashCode(): Int { +public fun ByteArray.contentHashCode(): Int { return this.contentHashCode() } @@ -628,7 +628,7 @@ public actual fun ByteArray.contentHashCode(): Int { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun ShortArray.contentHashCode(): Int { +public fun ShortArray.contentHashCode(): Int { return this.contentHashCode() } @@ -638,7 +638,7 @@ public actual fun ShortArray.contentHashCode(): Int { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun IntArray.contentHashCode(): Int { +public fun IntArray.contentHashCode(): Int { return this.contentHashCode() } @@ -648,7 +648,7 @@ public actual fun IntArray.contentHashCode(): Int { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun LongArray.contentHashCode(): Int { +public fun LongArray.contentHashCode(): Int { return this.contentHashCode() } @@ -658,7 +658,7 @@ public actual fun LongArray.contentHashCode(): Int { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun FloatArray.contentHashCode(): Int { +public fun FloatArray.contentHashCode(): Int { return this.contentHashCode() } @@ -668,7 +668,7 @@ public actual fun FloatArray.contentHashCode(): Int { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun DoubleArray.contentHashCode(): Int { +public fun DoubleArray.contentHashCode(): Int { return this.contentHashCode() } @@ -678,7 +678,7 @@ public actual fun DoubleArray.contentHashCode(): Int { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun BooleanArray.contentHashCode(): Int { +public fun BooleanArray.contentHashCode(): Int { return this.contentHashCode() } @@ -688,7 +688,7 @@ public actual fun BooleanArray.contentHashCode(): Int { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun CharArray.contentHashCode(): Int { +public fun CharArray.contentHashCode(): Int { return this.contentHashCode() } @@ -808,7 +808,7 @@ public actual fun CharArray?.contentHashCode(): Int { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun Array.contentToString(): String { +public fun Array.contentToString(): String { return this.contentToString() } @@ -820,7 +820,7 @@ public actual fun Array.contentToString(): String { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun ByteArray.contentToString(): String { +public fun ByteArray.contentToString(): String { return this.contentToString() } @@ -832,7 +832,7 @@ public actual fun ByteArray.contentToString(): String { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun ShortArray.contentToString(): String { +public fun ShortArray.contentToString(): String { return this.contentToString() } @@ -844,7 +844,7 @@ public actual fun ShortArray.contentToString(): String { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun IntArray.contentToString(): String { +public fun IntArray.contentToString(): String { return this.contentToString() } @@ -856,7 +856,7 @@ public actual fun IntArray.contentToString(): String { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun LongArray.contentToString(): String { +public fun LongArray.contentToString(): String { return this.contentToString() } @@ -868,7 +868,7 @@ public actual fun LongArray.contentToString(): String { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun FloatArray.contentToString(): String { +public fun FloatArray.contentToString(): String { return this.contentToString() } @@ -880,7 +880,7 @@ public actual fun FloatArray.contentToString(): String { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun DoubleArray.contentToString(): String { +public fun DoubleArray.contentToString(): String { return this.contentToString() } @@ -892,7 +892,7 @@ public actual fun DoubleArray.contentToString(): String { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun BooleanArray.contentToString(): String { +public fun BooleanArray.contentToString(): String { return this.contentToString() } @@ -904,7 +904,7 @@ public actual fun BooleanArray.contentToString(): String { @Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") @DeprecatedSinceKotlin(hiddenSince = "1.4") -public actual fun CharArray.contentToString(): String { +public fun CharArray.contentToString(): String { return this.contentToString() } diff --git a/libraries/stdlib/wasm/src/generated/_UArraysWasm.kt b/libraries/stdlib/wasm/src/generated/_UArraysWasm.kt index 0a324df6351..39569d5df95 100644 --- a/libraries/stdlib/wasm/src/generated/_UArraysWasm.kt +++ b/libraries/stdlib/wasm/src/generated/_UArraysWasm.kt @@ -125,3 +125,147 @@ public actual fun UShortArray.asList(): List { } } +/** + * Returns `true` if the two specified arrays are *structurally* equal to one another, + * i.e. contain the same number of the same elements in the same order. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public infix fun UIntArray.contentEquals(other: UIntArray): Boolean { + return this.contentEquals(other) +} + +/** + * Returns `true` if the two specified arrays are *structurally* equal to one another, + * i.e. contain the same number of the same elements in the same order. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public infix fun ULongArray.contentEquals(other: ULongArray): Boolean { + return this.contentEquals(other) +} + +/** + * Returns `true` if the two specified arrays are *structurally* equal to one another, + * i.e. contain the same number of the same elements in the same order. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public infix fun UByteArray.contentEquals(other: UByteArray): Boolean { + return this.contentEquals(other) +} + +/** + * Returns `true` if the two specified arrays are *structurally* equal to one another, + * i.e. contain the same number of the same elements in the same order. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public infix fun UShortArray.contentEquals(other: UShortArray): Boolean { + return this.contentEquals(other) +} + +/** + * Returns a hash code based on the contents of this array as if it is [List]. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public fun UIntArray.contentHashCode(): Int { + return this.contentHashCode() +} + +/** + * Returns a hash code based on the contents of this array as if it is [List]. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public fun ULongArray.contentHashCode(): Int { + return this.contentHashCode() +} + +/** + * Returns a hash code based on the contents of this array as if it is [List]. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public fun UByteArray.contentHashCode(): Int { + return this.contentHashCode() +} + +/** + * Returns a hash code based on the contents of this array as if it is [List]. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public fun UShortArray.contentHashCode(): Int { + return this.contentHashCode() +} + +/** + * Returns a string representation of the contents of the specified array as if it is [List]. + * + * @sample samples.collections.Arrays.ContentOperations.contentToString + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public fun UIntArray.contentToString(): String { + return this.contentToString() +} + +/** + * Returns a string representation of the contents of the specified array as if it is [List]. + * + * @sample samples.collections.Arrays.ContentOperations.contentToString + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public fun ULongArray.contentToString(): String { + return this.contentToString() +} + +/** + * Returns a string representation of the contents of the specified array as if it is [List]. + * + * @sample samples.collections.Arrays.ContentOperations.contentToString + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public fun UByteArray.contentToString(): String { + return this.contentToString() +} + +/** + * Returns a string representation of the contents of the specified array as if it is [List]. + * + * @sample samples.collections.Arrays.ContentOperations.contentToString + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@SinceKotlin("1.3") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@ExperimentalUnsignedTypes +public fun UShortArray.contentToString(): String { + return this.contentToString() +} + diff --git a/libraries/stdlib/wasm/src/kotlin/text/StringNumberConversionsWasm.kt b/libraries/stdlib/wasm/src/kotlin/text/StringNumberConversionsWasm.kt index c9e5dd0834f..d4b7c3f036f 100644 --- a/libraries/stdlib/wasm/src/kotlin/text/StringNumberConversionsWasm.kt +++ b/libraries/stdlib/wasm/src/kotlin/text/StringNumberConversionsWasm.kt @@ -7,13 +7,6 @@ package kotlin.text import kotlin.math.abs import kotlin.wasm.internal.wasm_f32_demote_f64 -/** - * Returns `true` if the content of this string is equal to the word "true", ignoring case, and `false` otherwise. - */ -@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") -@DeprecatedSinceKotlin(hiddenSince = "1.4") -@kotlin.internal.InlineOnly -actual fun String.toBoolean(): Boolean = this.toBoolean() /** * Returns `true` if the contents of this string is equal to the word "true", ignoring case, and `false` otherwise. diff --git a/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-stdlib-runtime-merged.txt b/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-stdlib-runtime-merged.txt index f1c5dc64a70..7debaef754e 100644 --- a/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-stdlib-runtime-merged.txt +++ b/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-stdlib-runtime-merged.txt @@ -2651,27 +2651,15 @@ public final class kotlin/collections/unsigned/UArraysKt { public static synthetic fun binarySearch-WpHrYlw$default ([BBIIILjava/lang/Object;)I public static final fun contentEquals-FGO6Aew ([S[S)Z public static final fun contentEquals-KJPZfPQ ([I[I)Z - public static final synthetic fun contentEquals-ctEhBpI ([I[I)Z public static final fun contentEquals-kV0jMPg ([B[B)Z - public static final synthetic fun contentEquals-kdPth3s ([B[B)Z public static final fun contentEquals-lec5QzE ([J[J)Z - public static final synthetic fun contentEquals-mazbYpA ([S[S)Z - public static final synthetic fun contentEquals-us8wMrg ([J[J)Z - public static final synthetic fun contentHashCode--ajY-9A ([I)I public static final fun contentHashCode-2csIQuQ ([B)I - public static final synthetic fun contentHashCode-GBYM_sE ([B)I - public static final synthetic fun contentHashCode-QwZRm1k ([J)I public static final fun contentHashCode-XUkPCBk ([I)I public static final fun contentHashCode-d-6D3K8 ([S)I - public static final synthetic fun contentHashCode-rL5Bavg ([S)I public static final fun contentHashCode-uLth9ew ([J)I - public static final synthetic fun contentToString--ajY-9A ([I)Ljava/lang/String; public static final fun contentToString-2csIQuQ ([B)Ljava/lang/String; - public static final synthetic fun contentToString-GBYM_sE ([B)Ljava/lang/String; - public static final synthetic fun contentToString-QwZRm1k ([J)Ljava/lang/String; public static final fun contentToString-XUkPCBk ([I)Ljava/lang/String; public static final fun contentToString-d-6D3K8 ([S)Ljava/lang/String; - public static final synthetic fun contentToString-rL5Bavg ([S)Ljava/lang/String; public static final fun contentToString-uLth9ew ([J)Ljava/lang/String; public static final fun drop-PpDY95g ([BI)Ljava/util/List; public static final fun drop-nggk6HY ([SI)Ljava/util/List; diff --git a/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt b/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt index 0c1d8c3950b..ac342016e64 100644 --- a/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt +++ b/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt @@ -88,6 +88,7 @@ object ArrayOps : TemplateGroupBase() { } val f_contentEquals = fn("contentEquals(other: SELF)") { + platforms(Platform.Native) include(ArraysOfObjects, ArraysOfPrimitives, ArraysOfUnsigned) } builder { since("1.1") @@ -110,9 +111,6 @@ object ArrayOps : TemplateGroupBase() { For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. """ } - on(Platform.JVM) { - inlineOnly() - } } val f_contentEquals_nullable = fn("contentEquals(other: SELF?)") { @@ -141,7 +139,6 @@ object ArrayOps : TemplateGroupBase() { } on(Platform.JVM) { inlineOnly() - annotation("""@JvmName("contentEqualsNullable")""") body { "return java.util.Arrays.equals(this, other)" } } @@ -249,6 +246,7 @@ object ArrayOps : TemplateGroupBase() { } val f_contentToString = fn("contentToString()") { + platforms(Platform.Native) include(ArraysOfObjects, ArraysOfPrimitives, ArraysOfUnsigned) } builder { since("1.1") @@ -264,9 +262,6 @@ object ArrayOps : TemplateGroupBase() { if (f == ArraysOfUnsigned) { return@builder } - on(Platform.JVM) { - inlineOnly() - } } val f_contentToString_nullable = fn("contentToString()") { @@ -288,7 +283,6 @@ object ArrayOps : TemplateGroupBase() { on(Platform.JVM) { inlineOnly() - annotation("""@JvmName("contentToStringNullable")""") body { "return java.util.Arrays.toString(this)" } } on(Platform.JS) { @@ -371,6 +365,7 @@ object ArrayOps : TemplateGroupBase() { } val f_contentHashCode = fn("contentHashCode()") { + platforms(Platform.Native) include(ArraysOfObjects, ArraysOfPrimitives, ArraysOfUnsigned) } builder { since("1.1") @@ -383,9 +378,6 @@ object ArrayOps : TemplateGroupBase() { if (f == ArraysOfUnsigned) { return@builder } - on(Platform.JVM) { - inlineOnly() - } } val f_contentHashCode_nullable = fn("contentHashCode()") { @@ -404,7 +396,6 @@ object ArrayOps : TemplateGroupBase() { on(Platform.JVM) { inlineOnly() - annotation("""@JvmName("contentHashCodeNullable")""") body { "return java.util.Arrays.hashCode(this)" } } on(Platform.JS) {