TransliterationInterface
interface TransliterationInterface (View source)
Defines an interface for classes providing transliteration.
Methods
string
removeDiacritics(string $string)
Removes diacritics (accents) from certain letters.
string
transliterate(string $string, string $langcode = 'en', string $unknown_character = '?', int $max_length = NULL)
Transliterates text from Unicode to US-ASCII.
Details
string
removeDiacritics(string $string)
Removes diacritics (accents) from certain letters.
This only applies to certain letters: Accented Latin characters like a-with-acute-accent, in the UTF-8 character range of 0xE0 to 0xE6 and 01CD to 024F. Replacements that would result in the string changing length are excluded, as well as characters that are not accented US-ASCII letters.
string
transliterate(string $string, string $langcode = 'en', string $unknown_character = '?', int $max_length = NULL)
Transliterates text from Unicode to US-ASCII.