StringExtensions extension
Methods
-
capitalize()
→ String
-
capitalizes a given string
'hello' => 'Hello'
'Hello' => 'Hello'
'' => ''
-
getWords()
→ List<String>
-
get word list from string input
assume that words are separated by special characters or by camel case
-
toCase(CaseStyle? style)
→ String
-
transforms the string to the specified case
if case is null, then no transformation will be applied
-
toCaseOfLocale(CaseStyle style)
→ String
-
de-DE will be interpreted as
de,DE
normally, it would be de,D,E
which we do not want