From d4b3ae92cbf745b516d9421f8174beed3a819154 Mon Sep 17 00:00:00 2001 From: Abduqodiri Qurbonzoda Date: Thu, 11 Mar 2021 18:32:59 +0300 Subject: [PATCH] [K/N] Strict version of String.toBoolean() #KT-42071 --- .../src/main/kotlin/kotlin/text/StringNumberConversions.kt | 2 ++ 1 file changed, 2 insertions(+) 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 993092b5133..67c78822f61 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/text/StringNumberConversions.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/text/StringNumberConversions.kt @@ -61,6 +61,8 @@ 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]. */ @SinceKotlin("1.4") @kotlin.internal.InlineOnly