StringExtensions extension

on

Methods

capitalize() String

Available on String, provided by the StringExtensions extension

capitalizes a given string 'hello' => 'Hello' 'Hello' => 'Hello' '' => ''
getWords() List<String>

Available on String, provided by the StringExtensions extension

get word list from string input assume that words are separated by special characters or by camel case
toCase(CaseStyle? style) String

Available on String, provided by the StringExtensions extension

transforms the string to the specified case if case is null, then no transformation will be applied
toCaseOfLocale(CaseStyle style) String

Available on String, provided by the StringExtensions extension

de-DE will be interpreted as de,DE normally, it would be de,D,E which we do not want