Exemplo n.º 1
0
 /**
  * Returns the unicode ordinal for a character. This is a UTF8-aware
  * version of [ord](http://php.net/ord).
  *
  *     $digit = UTF8::ord($character);
  *
  * @author  Harry Fuecks <*****@*****.**>
  * @param   string   UTF-8 encoded character
  * @return  integer
  */
 public static function ord($chr)
 {
     if (!isset(self::$called[__FUNCTION__])) {
         require SYSPATH . 'utf8' . DIRECTORY_SEPARATOR . __FUNCTION__ . EXT;
         // Function has been called
         self::$called[__FUNCTION__] = TRUE;
     }
     return _ord($chr);
 }
Exemplo n.º 2
0
 /**
  * Returns the unicode ordinal for a character.
  * @see http://php.net/ord
  *
  * @author Harry Fuecks <*****@*****.**>
  *
  * @param   string   UTF-8 encoded character
  * @return  integer
  */
 public static function ord($chr)
 {
     if (!isset(self::$called[__FUNCTION__])) {
         require SYSPATH . 'core/utf8/' . __FUNCTION__ . EXT;
         // Function has been called
         self::$called[__FUNCTION__] = TRUE;
     }
     return _ord($chr);
 }
Exemplo n.º 3
0
 public static function ord($chr)
 {
     if (!isset(UTF8::$called[__FUNCTION__])) {
         require JsonApiApplication::find_file("utf8", __FUNCTION__);
         // Function has been called
         UTF8::$called[__FUNCTION__] = TRUE;
     }
     return _ord($chr);
 }
Exemplo n.º 4
0
 /**
  * Returns the unicode ordinal for a character.
  * @see http://php.net/ord
  *
  * @author Harry Fuecks <*****@*****.**>
  *
  * @param   string   UTF-8 encoded character
  * @return  integer
  */
 public static function ord($chr)
 {
     require_once dirname(__FILE__) . '/' . __FUNCTION__ . '.php';
     return _ord($chr);
 }
Exemplo n.º 5
0
 /**
  * Returns the unicode ordinal for a character. This is a UTF8-aware
  * version of [ord](http://php.net/ord).
  *
  *     $digit = UTF8::ord($character);
  *
  * @author  Harry Fuecks <*****@*****.**>
  * @param   string  $chr    UTF-8 encoded character
  * @return  integer
  */
 public static function ord($chr)
 {
     if (!isset(UTF8::$called[__FUNCTION__])) {
         require Kohana::find_file('utf8', __FUNCTION__);
         // Function has been called
         UTF8::$called[__FUNCTION__] = TRUE;
     }
     return _ord($chr);
 }
Exemplo n.º 6
0
 /**
  * Returns the unicode ordinal for a character
  *
  * This is a UTF8-aware version of [ord](http://php.net/ord).
  *
  * Example:
  * ~~~
  * $digit = UTF8::ord($character);
  * ~~~
  *
  * @author  Harry Fuecks <*****@*****.**>
  *
  * @param   string  $chr  UTF-8 encoded character
  *
  * @return  integer
  *
  * @uses    Kohana::find_file
  */
 public static function ord($chr)
 {
     UTF8::_load(__FUNCTION__);
     return _ord($chr);
 }
Exemplo n.º 7
0
 /**
  * Returns the unicode ordinal for a character. This is a UTF8-aware
  * version of [ord](http://php.net/ord).
  *
  *     $digit = UTF8::ord($character);
  *
  * @author  Harry Fuecks <*****@*****.**>
  * @param   string  $chr    UTF-8 encoded character
  * @return  integer
  */
 public static function ord($chr)
 {
     if (!isset(UTF8::$called[__FUNCTION__])) {
         require Phalcana::$di->get('fs')->findFile('utf8', __FUNCTION__);
         // Function has been called
         UTF8::$called[__FUNCTION__] = true;
     }
     return _ord($chr);
 }