Add a sample reference to isBlank
This commit is contained in:
committed by
Nikolay Igotti
parent
b093b4b83e
commit
5d08060c89
@@ -92,6 +92,8 @@ public actual fun String.decapitalize(): String {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns `true` if this string is empty or consists solely of whitespace characters.
|
* 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() }
|
public actual fun CharSequence.isBlank(): Boolean = length == 0 || indices.all { this[it].isWhitespace() }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user