summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-07-19 15:00:41 +0200
committerAndreas Gohr <andi@splitbrain.org>2007-07-19 15:00:41 +0200
commitf0ccaebb66cf573f186993c5db767a8b6e9d0000 (patch)
treec930cf4a2f895e7947309c56038f9d599ed30a41
parent58723938c4ac0722ab18a345d286634a9f823b39 (diff)
downloadrpg-f0ccaebb66cf573f186993c5db767a8b6e9d0000.tar.gz
rpg-f0ccaebb66cf573f186993c5db767a8b6e9d0000.tar.bz2
removed unnessary UTF-8 replacement functions
darcs-hash:20070719130041-7ad00-84d00f6385973e6f2f9499374c3c1d475eecb715.gz
-rw-r--r--inc/utf8.php34
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>