Defines an interface for classes providing transliteration.
Expanded class hierarchy of TransliterationInterface
All classes that implement TransliterationInterface
interface TransliterationInterface {
/**
* Transliterates text from Unicode to US-ASCII.
*
* @param string $string
* The string to transliterate.
* @param string $langcode
* (optional) The language code of the language the string is in. Defaults
* to 'en' if not provided.
* @param string $unknown_character
* (optional) The character to substitute for characters in $string without
* transliterated equivalents. Defaults to '?'.
*
* @return string
* $string with non-US-ASCII characters transliterated to US-ASCII
* characters, and unknown characters replaced with $unknown_character.
*/
public function transliterate($string, $langcode = 'en', $unknown_character = '?');
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TransliterationInterface:: |
public | function | Transliterates text from Unicode to US-ASCII. | 1 |