From f0ccaebb66cf573f186993c5db767a8b6e9d0000 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 19 Jul 2007 15:00:41 +0200 Subject: removed unnessary UTF-8 replacement functions darcs-hash:20070719130041-7ad00-84d00f6385973e6f2f9499374c3c1d475eecb715.gz --- inc/utf8.php | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'inc/utf8.php') diff --git a/inc/utf8.php b/inc/utf8.php index decafdf96..fcc49d509 100644 --- a/inc/utf8.php +++ b/inc/utf8.php @@ -239,40 +239,6 @@ function utf8_substr_replace($string, $replacement, $start , $length=0 ){ return $ret; } -/** - * Unicode aware replacement for explode - * - * @TODO support third limit arg - * @author Harry Fuecks - * @see explode(); - */ -function utf8_explode($sep, $str) { - if ( $sep == '' ) { - trigger_error('Empty delimiter',E_USER_WARNING); - return false; - } - - return preg_split('!'.preg_quote($sep,'!').'!u',$str); -} - -/** - * Unicode aware replacement for strrepalce() - * - * @todo support PHP5 count (fourth arg) - * @author Harry Fuecks - * @see strreplace(); - */ -function utf8_str_replace($s,$r,$str){ - if(!is_array($s)){ - $s = '!'.preg_quote($s,'!').'!u'; - }else{ - foreach ($s as $k => $v) { - $s[$k] = '!'.preg_quote($v).'!u'; - } - } - return preg_replace($s,$r,$str); -} - /** * Unicode aware replacement for ltrim() * -- cgit v1.2.3