summaryrefslogtreecommitdiff
path: root/inc/utf8.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/utf8.php')
-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>