StringCaseExtensions extension

Extension methods for String to provide advanced case manipulation functionalities.

on

Properties

isAllLetterLowerCase → bool

Available on String, provided by the StringCaseExtensions extension

Checks if the string contains only lowercase letters (a-z).
no setter
isAllLetterUpperCase → bool

Available on String, provided by the StringCaseExtensions extension

Checks if the string contains only uppercase letters (A-Z).
no setter
isAnyCaseLetter → bool

Available on String, provided by the StringCaseExtensions extension

Checks if the string contains only letters, regardless of case (a-z, A-Z).
no setter

Methods

capitalize({bool makeLowerCaseRemaining = false}) → String

Available on String, provided by the StringCaseExtensions extension

Capitalizes the first letter of the string, leaving the rest of the string unchanged.
capitalizeWords({bool makeLowerCaseRemaining = false}) → String

Available on String, provided by the StringCaseExtensions extension

Capitalizes the first letter of each word in the string, leaving other characters as they are.
findCapitalizedWords() → List<String>?

Available on String, provided by the StringCaseExtensions extension

Finds and returns a list of words from the string that are capitalized (start with an uppercase letter).
insertSpaceBetweenCapitalized({bool splitNumbers = false}) → String

Available on String, provided by the StringCaseExtensions extension

Inserts a space between words that are capitalized in a string (CamelCase or PascalCase).
lowerCaseFirstChar() → String

Available on String, provided by the StringCaseExtensions extension

Converts the first character of the string to lowercase, leaving the rest of the string unchanged.
splitCapitalized({bool splitNumbers = false}) → List<String>

Available on String, provided by the StringCaseExtensions extension

Splits a CamelCase or PascalCase string into a list of words based on capitalization.
titleCase() → String

Available on String, provided by the StringCaseExtensions extension

Converts the string to title case, capitalizing the first letter and lowercasing the rest.
toUpperLatinOnly() → String

Available on String, provided by the StringCaseExtensions extension

Converts only the Latin alphabetic characters (a-z) in the string to uppercase, leaving other characters unchanged.
unCapitalizedWords() → List<String>?

Available on String, provided by the StringCaseExtensions extension

Finds and returns a list of words from the string that are uncapitalized (start with a lowercase letter).
upperCaseFirstChar() → String

Available on String, provided by the StringCaseExtensions extension

Converts the first character of the string to uppercase, leaving the rest of the string unchanged.
upperCaseLettersOnly() → String

Available on String, provided by the StringCaseExtensions extension

Extracts and concatenates only the uppercase letters from the string.