/** * Transliterates a string from one script to another and returns the new string. * * With this method, you can make a text written in one script sound same or similar in a different script. Some of * the available scripts are Latin, Arabic, Armenian, Bopomofo, Cyrillic, Georgian, Greek, Han, Hangul, Hebrew, * Hiragana, Indic, Jamo, Katakana, Syriac, Thaana, Thai, and ASCII. You can convert to Latin from any of the * scripts and vice versa. For more information, see * [General Transforms](http://userguide.icu-project.org/transforms/general) in the ICU User Guide and * [ICU Transform Demonstration](http://demo.icu-project.org/icu-bin/translit). * * @param string $fromScript The name of the source script (case-insensitive). * @param string $toScript The name of the destination script (case-insensitive). * * @return CUStringObject The transliterated string. */ public function transliterate($fromScript, $toScript) { return CUString::transliterate($this, $fromScript, $toScript); }