Ejemplo n.º 1
0
 /**
  * Transliterates a string from an arbitrary script to a specified one and returns the new string.
  *
  * With this method, you can make a text written in an arbitrary script sound same or similar in another 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 $toScript The name of the destination script (case-insensitive).
  *
  * @return CUStringObject The transliterated string.
  */
 public function transliterateFromAny($toScript)
 {
     return CUString::transliterateFromAny($this, $toScript);
 }