StringExtension extension

An extension on String

on

Methods

count(String character) → int

Available on String, provided by the StringExtension extension

firstLetterInUppercase() → String

Available on String, provided by the StringExtension extension

getComparisonSafeString() → String

Available on String, provided by the StringExtension extension

Same as removeDiacritics but also lowercases the string. Prefer this method when you want to compare two strings.
removeDiacritics() → String

Available on String, provided by the StringExtension extension

Please use this method instead of directly calling the library. It will ease the migration if we decide to remove/change it.