TransliterationInterface::removeDiacritics

public TransliterationInterface::removeDiacritics($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.

Parameters

string $string: The string holding diacritics.

Return value

string $string with accented letters replaced by their unaccented equivalents.

File

core/lib/Drupal/Component/Transliteration/TransliterationInterface.php, line 26

Class

TransliterationInterface
Defines an interface for classes providing transliteration.

Namespace

Drupal\Component\Transliteration

Code

public function removeDiacritics($string);
doc_Drupal
2016-10-29 09:49:29
Comments
Leave a Comment

Please login to continue.