StringExtension extension

on

Properties

firstUpper → String

Available on String, provided by the StringExtension extension

To upper case the first letter
no setter
normalize → String

Available on String, provided by the StringExtension extension

To upper case the first letter and other lower case
no setter

Methods

dateByFormat(String format) → DateTime

Available on String, provided by the StringExtension extension

Parse date by format
toBool() → bool

Available on String, provided by the StringExtension extension

Convert string to bool
toDateTime() → DateTime

Available on String, provided by the StringExtension extension

Convert string to datetime
toDateTimeLocal() → DateTime

Available on String, provided by the StringExtension extension

Convert string to datetime
toDouble() → double

Available on String, provided by the StringExtension extension

Convert string to double
toInt() → int

Available on String, provided by the StringExtension extension

Convert int to double
tryDateTime() → DateTime?

Available on String, provided by the StringExtension extension

Convert string to datetime
tryToBool() → bool?

Available on String, provided by the StringExtension extension

Try convert string to bool
tryToDouble() → double?

Available on String, provided by the StringExtension extension

Convert string to double or null
tryToInt() → int?

Available on String, provided by the StringExtension extension

Try convert int to double