Package-level declarations

Contains types such as NotBlankString for manipulating text.

Types

Link copied to clipboard
@Serializable(with = NotBlankStringSerializer::class)
@SinceKotoolsTypes(version = "4.0")
value class NotBlankString

Representation of strings that have at least one character, excluding whitespaces.

Functions

Link copied to clipboard
@SinceKotoolsTypes(version = "4.0")
fun String.toNotBlankString(): Result<NotBlankString>

Returns this string as a NotBlankString, or returns an IllegalArgumentException if this string is blank.