OSDN Git Service

Merge branch 'skinnable-master' of ssh://shizuki@git.sourceforge.jp/gitroot/nucleus...
[nucleus-jp/nucleus-next.git] / nucleus / libs / i18n.php
index 8c4f138..6e89097 100644 (file)
@@ -339,46 +339,6 @@ class i18n
        }\r
        \r
        /**\r
-        * i18n::explode()\r
-        * explode function based on multibyte processing with non-pcre regular expressions\r
-        * \r
-        * NOTE: we SHOULD use preg_split function instead of this,\r
-        *  and I hope this is obsoleted near future...\r
-        *  \r
-        *  preg_split()\r
-        *  http://www.php.net/manual/en/function.preg-split.php\r
-        * \r
-        * @static\r
-        * @param       string  $delimiter      singlebyte or multibyte delimiter\r
-        * @param       string  $target target string\r
-        * @param       integer $limit  the number of index for returned array\r
-        * @return      array   array splitted by $delimiter\r
-        */\r
-       static public function explode($delimiter, $target, $limit=0)\r
-       {\r
-               $array = array();\r
-               $preg_delimiter = '#' . preg_quote($delimiter, '#') . '#';\r
-               if ( preg_match($preg_delimiter, $target) === 0 )\r
-               {\r
-                       return (array) $target;\r
-               }\r
-               for ( $count=0; $limit == 0 || $count < $limit; $count++ )\r
-               {\r
-                       $offset = self::strpos($target, $delimiter);\r
-                       if ( $array != array() && $offset == 0 )\r
-                       {\r
-                               $array[] = $target;\r
-                               break;\r
-                       }\r
-                       $array[]        = self::substr($target, 0, $offset);\r
-                       $length = self::strlen($target) - $offset;\r
-                       $target = self::substr($target, $offset+1, $length);\r
-                       continue;\r
-               }\r
-               return (array) $array;\r
-       }\r
-       \r
-       /**\r
         * i18n::strftime\r
         * strftime function based on multibyte processing\r
         * \r