StringDiacriticsExtensions extension
An extension on the String class to provide utility methods for handling diacritical marks (accents).
- on
Methods
-
containsDiacritics(
) → bool -
Available on String, provided by the StringDiacriticsExtensions extension
Accurately checks if the string contains any diacritical characters that can be removed by the removeDiacritics method. -
removeDiacritics(
) → String -
Available on String, provided by the StringDiacriticsExtensions extension
Removes diacritical marks from the string, replacing them with their base ASCII equivalents (e.g., 'é' becomes 'e').