コード例 #1
0
 public static function transliterate_to_ascii($str, $case = 0)
 {
     if (!isset(UTF8::$called[__FUNCTION__])) {
         require JsonApiApplication::find_file("utf8", __FUNCTION__);
         // Function has been called
         UTF8::$called[__FUNCTION__] = TRUE;
     }
     return _transliterate_to_ascii($str, $case);
 }
コード例 #2
0
ファイル: utf8.php プロジェクト: momoim/momo-api
 /**
  * Replaces special/accented UTF-8 characters by ASCII-7 'equivalents'.
  *
  * @author  Andreas Gohr <*****@*****.**>
  *
  * @param   string   string to transliterate
  * @param   integer  -1 lowercase only, +1 uppercase only, 0 both cases
  * @return  string
  */
 public static function transliterate_to_ascii($str, $case = 0)
 {
     if (!isset(self::$called[__FUNCTION__])) {
         require SYSPATH . 'core/utf8/' . __FUNCTION__ . EXT;
         // Function has been called
         self::$called[__FUNCTION__] = TRUE;
     }
     return _transliterate_to_ascii($str, $case);
 }
コード例 #3
0
ファイル: UTF8.php プロジェクト: doorframework/core
 /**
  * Replaces special/accented UTF-8 characters by ASCII-7 "equivalents".
  *
  *     $ascii = UTF8::transliterate_to_ascii($utf8);
  *
  * @author  Andreas Gohr <*****@*****.**>
  * @param   string  $str    string to transliterate
  * @param   integer $case   -1 lowercase only, +1 uppercase only, 0 both cases
  * @return  string
  */
 public static function transliterate_to_ascii($str, $case = 0)
 {
     return _transliterate_to_ascii($str, $case);
 }
コード例 #4
0
ファイル: lib.utf8.php プロジェクト: abhinay100/forma_app
 /**
  * Replaces special/accented UTF-8 characters by ASCII-7 'equivalents'.
  *
  * @author  Andreas Gohr <*****@*****.**>
  *
  * @param   string   string to transliterate
  * @param   integer  -1 lowercase only, +1 uppercase only, 0 both cases
  * @return  string
  */
 public static function transliterate_to_ascii($str, $case = 0)
 {
     require_once dirname(__FILE__) . '/' . __FUNCTION__ . '.php';
     return _transliterate_to_ascii($str, $case);
 }
コード例 #5
0
ファイル: UTF8.php プロジェクト: s4urp8n/kohana-admin
 /**
  * Replaces special/accented UTF-8 characters by ASCII-7 "equivalents".
  *
  *     $ascii = UTF8::transliterate_to_ascii($utf8);
  *
  * @author  Andreas Gohr <*****@*****.**>
  *
  * @param   string  $str  string to transliterate
  * @param   integer $case -1 lowercase only, +1 uppercase only, 0 both cases
  *
  * @return  string
  */
 public static function transliterate_to_ascii($str, $case = 0)
 {
     if (!isset(UTF8::$called[__FUNCTION__])) {
         require Kohana::find_file('utf8', __FUNCTION__);
         // Function has been called
         UTF8::$called[__FUNCTION__] = true;
     }
     return _transliterate_to_ascii($str, $case);
 }