StringExt extension
String extensions
- on
Methods
-
capitalize(
) → String -
Capitalizes each word in the string, e.g.:
hello world
becomesHello World
. -
capitalizeFirst(
) → String -
Capitalizes the first word in the string, e.g.:
hello world
becomesHello world
. -
hasMatch(
String pattern) → bool -
Checks whether this regular expression has a match in the
pattern
. -
isBool(
{bool caseSensitive = true}) → bool - Indicates if the string is a boolean
-
isDouble(
) → bool - Indicates if the string is a double number
-
isInt(
) → bool - Indicates if the string is an integer number
-
isNum(
) → bool - Indicates if the string is a number
-
removeAllWhitespace(
) → String - Removes all the whitespace from the string
-
toBool(
{bool caseSensitive = true}) → bool - Converts the string into a Boolean
-
toDouble(
) → double - Converts the string into an double
-
toInt(
) → int - Converts the string into an int
-
toNum(
) → num - Converts the string into a num