StringExtensions extension

on

Properties

isEmail bool

Available on String, provided by the StringExtensions extension

Checks if string is email
no setter
isNotNullOrEmpty bool

Available on String, provided by the StringExtensions extension

Checks if string is not empty
no setter
isNullOrEmpty bool

Available on String, provided by the StringExtensions extension

Checks if string is empty or null
no setter
isNumeric bool

Available on String, provided by the StringExtensions extension

Checks if string is numeric
no setter
isPhoneNumber bool

Available on String, provided by the StringExtensions extension

Checks if string is phone number
no setter
isUrl bool

Available on String, provided by the StringExtensions extension

Checks if string is URL
no setter
removeHtmlTags String

Available on String, provided by the StringExtensions extension

Removes HTML tags
no setter
removeWhitespace String

Available on String, provided by the StringExtensions extension

Removes all whitespace
no setter
reversed String

Available on String, provided by the StringExtensions extension

Reverses the string
no setter
titleCase String

Available on String, provided by the StringExtensions extension

Converts to title case
no setter
toDouble double?

Available on String, provided by the StringExtensions extension

Converts string to double safely
no setter
toInt int?

Available on String, provided by the StringExtensions extension

Converts string to int safely
no setter
wordCount int

Available on String, provided by the StringExtensions extension

Counts words in string
no setter

Methods

capitalizeEachWord() String

Available on String, provided by the StringExtensions extension

Capitalizes each word in string
capitalizeFirst() String

Available on String, provided by the StringExtensions extension

Capitalizes first letter of string
truncate(int maxLength) String

Available on String, provided by the StringExtensions extension

Truncates string with ellipsis