Strict version of String.toBoolean() #KT-42071

This commit is contained in:
Abduqodiri Qurbonzoda
2021-03-05 09:57:54 +03:00
parent 5f4a4fd8ae
commit 09ad5ca602
9 changed files with 80 additions and 0 deletions
+2
View File
@@ -493,6 +493,8 @@ actual fun String.toBoolean(): Boolean = TODO("Wasm stdlib: Text")
/**
* Returns `true` if the contents of this string 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].
*/
actual fun String?.toBoolean(): Boolean = TODO("Wasm stdlib: Text")