10 defined(
'JPATH_PLATFORM') or die;
32 public static function utf8_latin_to_ascii($string, $case = 0)
34 static $UTF8_LOWER_ACCENTS = null;
35 static $UTF8_UPPER_ACCENTS = null;
39 if (is_null($UTF8_LOWER_ACCENTS))
41 $UTF8_LOWER_ACCENTS = array(
149 $string = str_replace(array_keys($UTF8_LOWER_ACCENTS), array_values($UTF8_LOWER_ACCENTS), $string);
154 if (is_null($UTF8_UPPER_ACCENTS))
156 $UTF8_UPPER_ACCENTS = array(
261 $string = str_replace(array_keys($UTF8_UPPER_ACCENTS), array_values($UTF8_UPPER_ACCENTS), $string);