W3cubDocs

/Drupal 8

public function 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);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Transliteration!TransliterationInterface.php/function/TransliterationInterface::removeDiacritics/8.1.x