Ejemplo n.º 1
0
 /**
  * Reverses a UTF-8 string. This is a UTF8-aware version of [strrev](http://php.net/strrev).
  *
  *     $str = UTF8::strrev($str);
  *
  * @author  Harry Fuecks <*****@*****.**>
  * @param   string   string to be reversed
  * @return  string
  */
 public static function strrev($str)
 {
     if (!isset(self::$called[__FUNCTION__])) {
         require SYSPATH . 'utf8' . DIRECTORY_SEPARATOR . __FUNCTION__ . EXT;
         // Function has been called
         self::$called[__FUNCTION__] = TRUE;
     }
     return _strrev($str);
 }
Ejemplo n.º 2
0
 /**
  * Reverses a UTF-8 string.
  * @see http://php.net/strrev
  *
  * @author  Harry Fuecks <*****@*****.**>
  *
  * @param   string   string to be reversed
  * @return  string
  */
 public static function strrev($str)
 {
     if (!isset(self::$called[__FUNCTION__])) {
         require SYSPATH . 'core/utf8/' . __FUNCTION__ . EXT;
         // Function has been called
         self::$called[__FUNCTION__] = TRUE;
     }
     return _strrev($str);
 }
Ejemplo n.º 3
0
 public static function strrev($str)
 {
     if (!isset(UTF8::$called[__FUNCTION__])) {
         require JsonApiApplication::find_file("utf8", __FUNCTION__);
         // Function has been called
         UTF8::$called[__FUNCTION__] = TRUE;
     }
     return _strrev($str);
 }
Ejemplo n.º 4
0
 /**
  * Reverses a UTF-8 string.
  * @see http://php.net/strrev
  *
  * @author  Harry Fuecks <*****@*****.**>
  *
  * @param   string   string to be reversed
  * @return  string
  */
 public static function strrev($str)
 {
     require_once dirname(__FILE__) . '/' . __FUNCTION__ . '.php';
     return _strrev($str);
 }
Ejemplo n.º 5
0
 /**
  * Reverses a UTF-8 string. This is a UTF8-aware version of [strrev](http://php.net/strrev).
  *
  *     $str = UTF8::strrev($str);
  *
  * @author  Harry Fuecks <*****@*****.**>
  * @param   string  $str string to be reversed
  * @return  string
  */
 public static function strrev($str)
 {
     if (!isset(UTF8::$called[__FUNCTION__])) {
         require Kohana::find_file('utf8', __FUNCTION__);
         // Function has been called
         UTF8::$called[__FUNCTION__] = TRUE;
     }
     return _strrev($str);
 }
Ejemplo n.º 6
0
 /**
  * Reverses a UTF-8 string
  *
  * This is a UTF8-aware version of [strrev](http://php.net/strrev).
  *
  * Example:
  * ~~~
  * $str = UTF8::strrev($str);
  * ~~~
  *
  * @author  Harry Fuecks <*****@*****.**>
  *
  * @param   string  $str  String to be reversed
  *
  * @return  string
  *
  * @uses    Kohana::find_file
  */
 public static function strrev($str)
 {
     UTF8::_load(__FUNCTION__);
     return _strrev($str);
 }
Ejemplo n.º 7
0
 /**
  * Reverses a UTF-8 string. This is a UTF8-aware version of [strrev](http://php.net/strrev).
  *
  *     $str = UTF8::strrev($str);
  *
  * @author  Harry Fuecks <*****@*****.**>
  * @param   string  $str string to be reversed
  * @return  string
  */
 public static function strrev($str)
 {
     if (!isset(UTF8::$called[__FUNCTION__])) {
         require Phalcana::$di->get('fs')->findFile('utf8', __FUNCTION__);
         // Function has been called
         UTF8::$called[__FUNCTION__] = true;
     }
     return _strrev($str);
 }