diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-07-19 15:00:41 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-07-19 15:00:41 +0200 |
commit | f0ccaebb66cf573f186993c5db767a8b6e9d0000 (patch) | |
tree | c930cf4a2f895e7947309c56038f9d599ed30a41 /inc | |
parent | 58723938c4ac0722ab18a345d286634a9f823b39 (diff) | |
download | rpg-f0ccaebb66cf573f186993c5db767a8b6e9d0000.tar.gz rpg-f0ccaebb66cf573f186993c5db767a8b6e9d0000.tar.bz2 |
removed unnessary UTF-8 replacement functions
darcs-hash:20070719130041-7ad00-84d00f6385973e6f2f9499374c3c1d475eecb715.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/utf8.php | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/inc/utf8.php b/inc/utf8.php index decafdf96..fcc49d509 100644 --- a/inc/utf8.php +++ b/inc/utf8.php @@ -240,40 +240,6 @@ function utf8_substr_replace($string, $replacement, $start , $length=0 ){ } /** - * Unicode aware replacement for explode - * - * @TODO support third limit arg - * @author Harry Fuecks <hfuecks@gmail.com> - * @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 <hfuecks@gmail.com> - * @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() * * @author Andreas Gohr <andi@splitbrain.org> |