Add samples for is(|Not|NullOr)Empty and is(|Not|NullOr)Blank functions
This commit is contained in:
@@ -351,6 +351,8 @@ public inline fun String.intern(): String = (this as java.lang.String).intern()
|
||||
|
||||
/**
|
||||
* Returns `true` if this string is empty or consists solely of whitespace characters.
|
||||
*
|
||||
* @sample samples.text.Strings.stringIsBlank
|
||||
*/
|
||||
public actual fun CharSequence.isBlank(): Boolean = length == 0 || indices.all { this[it].isWhitespace() }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user