X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FFallback.php;h=8e7f4b7e27c11c04f1bd04f9955d07cd81822f1c;hb=32d052537191da40afcd3d50f1f93cdba34db463;hp=e38bdf1a70bfd0a1864f79e15d3a24ba96533798;hpb=00c13cb4d5f978a57275e74752a4be734675be81;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Fallback.php b/includes/Fallback.php index e38bdf1a70..8e7f4b7e27 100644 --- a/includes/Fallback.php +++ b/includes/Fallback.php @@ -25,28 +25,6 @@ */ class Fallback { - /** - * @param string $from - * @param string $to - * @param string $string - * @return string - */ - public static function iconv( $from, $to, $string ) { - if ( substr( $to, -8 ) == '//IGNORE' ) { - $to = substr( $to, 0, strlen( $to ) - 8 ); - } - if ( strcasecmp( $from, $to ) == 0 ) { - return $string; - } - if ( strcasecmp( $from, 'utf-8' ) == 0 ) { - return utf8_decode( $string ); - } - if ( strcasecmp( $to, 'utf-8' ) == 0 ) { - return utf8_encode( $string ); - } - return $string; - } - /** * Fallback implementation for mb_substr, hardcoded to UTF-8. * Attempts to be at least _moderately_ efficient; best optimized @@ -174,8 +152,8 @@ class Fallback { * Fallback implementation of mb_strrpos, hardcoded to UTF-8. * @param string $haystack * @param string $needle - * @param string $offset optional start position - * @param string $encoding optional encoding; ignored + * @param string $offset Optional start position + * @param string $encoding Optional encoding; ignored * @return int */ public static function mb_strrpos( $haystack, $needle, $offset = 0, $encoding = '' ) {