コード例 #1
0
ファイル: utf8.php プロジェクト: gilyaev/framework-bench
 /**
  * Case-insensitive UTF-8 string comparison. This is a UTF8-aware version
  * of [strcasecmp](http://php.net/strcasecmp).
  *
  *     $compare = UTF8::strcasecmp($str1, $str2);
  *
  * @author  Harry Fuecks <*****@*****.**>
  * @param   string   string to compare
  * @param   string   string to compare
  * @return  integer  less than 0 if str1 is less than str2
  * @return  integer  greater than 0 if str1 is greater than str2
  * @return  integer  0 if they are equal
  */
 public static function strcasecmp($str1, $str2)
 {
     if (!isset(self::$called[__FUNCTION__])) {
         require SYSPATH . 'utf8' . DIRECTORY_SEPARATOR . __FUNCTION__ . EXT;
         // Function has been called
         self::$called[__FUNCTION__] = TRUE;
     }
     return _strcasecmp($str1, $str2);
 }
コード例 #2
0
ファイル: utf8.php プロジェクト: momoim/momo-api
 /**
  * Case-insensitive UTF-8 string comparison.
  * @see http://php.net/strcasecmp
  *
  * @author  Harry Fuecks <*****@*****.**>
  *
  * @param   string   string to compare
  * @param   string   string to compare
  * @return  integer  less than 0 if str1 is less than str2
  * @return  integer  greater than 0 if str1 is greater than str2
  * @return  integer  0 if they are equal
  */
 public static function strcasecmp($str1, $str2)
 {
     if (!isset(self::$called[__FUNCTION__])) {
         require SYSPATH . 'core/utf8/' . __FUNCTION__ . EXT;
         // Function has been called
         self::$called[__FUNCTION__] = TRUE;
     }
     return _strcasecmp($str1, $str2);
 }
コード例 #3
0
 public static function strcasecmp($str1, $str2)
 {
     if (!isset(UTF8::$called[__FUNCTION__])) {
         require JsonApiApplication::find_file("utf8", __FUNCTION__);
         // Function has been called
         UTF8::$called[__FUNCTION__] = TRUE;
     }
     return _strcasecmp($str1, $str2);
 }
コード例 #4
0
ファイル: lib.utf8.php プロジェクト: abhinay100/forma_app
 /**
  * Case-insensitive UTF-8 string comparison.
  * @see http://php.net/strcasecmp
  *
  * @author  Harry Fuecks <*****@*****.**>
  *
  * @param   string   string to compare
  * @param   string   string to compare
  * @return  integer  less than 0 if str1 is less than str2
  * @return  integer  greater than 0 if str1 is greater than str2
  * @return  integer  0 if they are equal
  */
 public static function strcasecmp($str1, $str2)
 {
     require_once dirname(__FILE__) . '/' . __FUNCTION__ . '.php';
     return _strcasecmp($str1, $str2);
 }
コード例 #5
0
ファイル: UTF8.php プロジェクト: Chinese1904/openclassifieds2
 /**
  * Case-insensitive UTF-8 string comparison. This is a UTF8-aware version
  * of [strcasecmp](http://php.net/strcasecmp).
  *
  *     $compare = UTF8::strcasecmp($str1, $str2);
  *
  * @author  Harry Fuecks <*****@*****.**>
  * @param   string  $str1   string to compare
  * @param   string  $str2   string to compare
  * @return  integer less than 0 if str1 is less than str2
  * @return  integer greater than 0 if str1 is greater than str2
  * @return  integer 0 if they are equal
  */
 public static function strcasecmp($str1, $str2)
 {
     if (!isset(UTF8::$called[__FUNCTION__])) {
         require Kohana::find_file('utf8', __FUNCTION__);
         // Function has been called
         UTF8::$called[__FUNCTION__] = TRUE;
     }
     return _strcasecmp($str1, $str2);
 }
コード例 #6
0
ファイル: utf8.php プロジェクト: ultimateprogramer/cms
 /**
  * Case-insensitive UTF-8 string comparison
  *
  * This is a UTF8-aware version of [strcasecmp](http://php.net/strcasecmp).
  *
  * Example:
  * ~~~
  * $compare = UTF8::strcasecmp($str1, $str2);
  * ~~~
  *
  * @author  Harry Fuecks <*****@*****.**>
  *
  * @param   string  $str1  String to compare
  * @param   string  $str2  String to compare
  *
  * @return  integer
  *
  * @uses    Kohana::find_file
  */
 public static function strcasecmp($str1, $str2)
 {
     UTF8::_load(__FUNCTION__);
     return _strcasecmp($str1, $str2);
 }
コード例 #7
0
ファイル: UTF8.php プロジェクト: braf/phalcana-core
 /**
  * Case-insensitive UTF-8 string comparison. This is a UTF8-aware version
  * of [strcasecmp](http://php.net/strcasecmp).
  *
  *     $compare = UTF8::strcasecmp($str1, $str2);
  *
  * @author  Harry Fuecks <*****@*****.**>
  * @param   string  $str1   string to compare
  * @param   string  $str2   string to compare
  * @return  integer less than 0 if str1 is less than str2
  * @return  integer greater than 0 if str1 is greater than str2
  * @return  integer 0 if they are equal
  */
 public static function strcasecmp($str1, $str2)
 {
     if (!isset(UTF8::$called[__FUNCTION__])) {
         require Phalcana::$di->get('fs')->findFile('utf8', __FUNCTION__);
         // Function has been called
         UTF8::$called[__FUNCTION__] = true;
     }
     return _strcasecmp($str1, $str2);
 }