Strings extension

Provides functions that manipulate Strings.

on

Properties

isBlank bool

Available on String, provided by the Strings extension

Whether this is comprised of only whitespaces.
no setter
isLowerCase bool

Available on String, provided by the Strings extension

Whether this is comprised of only uppercase characters.
no setter
isNotBlank bool

Available on String, provided by the Strings extension

Whether this string is not comprised of only whitespaces.
no setter
isUpperCase bool

Available on String, provided by the Strings extension

Whether this is comprised of only uppercase characters.
no setter
lines Iterable<String>

Available on String, provided by the Strings extension

Lazily splits this into individual lines.
no setter

Methods

capitalize() String

Available on String, provided by the Strings extension

Capitalizes the first character.
equalsIgnoreCase(String other) bool

Available on String, provided by the Strings extension

Returns true if this and other are equal, ignoring capitalization.
matches(Pattern pattern) bool

Available on String, provided by the Strings extension

Returns true if this matches pattern.
toCamelCase([Pattern? separators]) String

Available on String, provided by the Strings extension

Camel-cases this string.
toKebabCase([Pattern? separators]) String

Available on String, provided by the Strings extension

Kebab-cases this string.
toPascalCase([Pattern? separators]) String

Available on String, provided by the Strings extension

Pascal-cases this string.
toScreamingCase([Pattern? separators]) String

Available on String, provided by the Strings extension

Screaming-cases this string.
toSentenceCase([Pattern? separators]) String

Available on String, provided by the Strings extension

Sentence-cases this string.
toSnakeCase([Pattern? separators]) String

Available on String, provided by the Strings extension

Snake-cases this string.
toTitleCase([Pattern? separators]) String

Available on String, provided by the Strings extension

Title-cases this string.

Static Properties

partialWordSeparators Pattern

Available on String, provided by the Strings extension

A subset of wordSeparators that do not separate consecutive uppercase characters.
final
wordSeparators Pattern

Available on String, provided by the Strings extension

The default separators recognized by toCamelCase and other related functions.
final