From: Matthias Schmidt Date: Sat, 21 May 2016 21:09:18 +0000 (+0200) Subject: Remove deprecated methods in StringUtil X-Git-Tag: 3.0.0_Beta_1~1681^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=23fc91808e9225c9707584ed5d51c90484cb976b;p=GitHub%2FWoltLab%2FWCF.git Remove deprecated methods in StringUtil --- diff --git a/CHANGELOG.md b/CHANGELOG.md index b8a88ed7b1..017d6d9587 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -62,6 +62,7 @@ * Version system removed. * Support for query string based sessions in Frontend removed. * Language server system removed. +* Deprecated methods in `wcf\util\StringUtil` removed. #### Documentation diff --git a/wcfsetup/install/files/lib/util/StringUtil.class.php b/wcfsetup/install/files/lib/util/StringUtil.class.php index 61ced27d2a..9b89367427 100644 --- a/wcfsetup/install/files/lib/util/StringUtil.class.php +++ b/wcfsetup/install/files/lib/util/StringUtil.class.php @@ -241,91 +241,6 @@ final class StringUtil { return str_replace('-', self::MINUS, $number); } - /** - * Sorts an array of strings and maintain index association. - * - * @param array $strings - * @return boolean - * - * @deprecated - */ - public static function sort(array &$strings) { - return asort($strings, SORT_LOCALE_STRING); - } - - /** - * Alias to php mb_strlen() function. - * - * @deprecated use mb_strlen() instead - */ - public static function length($string) { - return mb_strlen($string); - } - - /** - * Alias to php mb_strpos() function. - * - * @deprecated use mb_strpos() instead - */ - public static function indexOf($hayStack, $needle, $offset = 0) { - return mb_strpos($hayStack, $needle, $offset); - } - - /** - * Alias to php mb_stripos() function. - * - * @deprecated use mb_stripos() instead - */ - public static function indexOfIgnoreCase($hayStack, $needle, $offset = 0) { - return mb_stripos($hayStack, $needle, $offset); - } - - /** - * Alias to php mb_strrpos() function. - * - * @deprecated use mb_strrpos() instead - */ - public static function lastIndexOf($hayStack, $needle) { - return mb_strrpos($hayStack, $needle); - } - - /** - * Alias to php mb_substr() function. - * - * @deprecated use mb_substr() instead - */ - public static function substring($string, $start, $length = null) { - if ($length !== null) return mb_substr($string, $start, $length); - return mb_substr($string, $start); - } - - /** - * Alias to php mb_strtolower() function. - * - * @deprecated use mb_strtolower() instead - */ - public static function toLowerCase($string) { - return mb_strtolower($string); - } - - /** - * Alias to php mb_strtoupper() function. - * - * @deprecated use mb_strtoupper() instead - */ - public static function toUpperCase($string) { - return mb_strtoupper($string); - } - - /** - * Alias to php substr_count() function. - * - * @deprecated use mb_substr_count() instead - */ - public static function countSubstring($hayStack, $needle) { - return mb_substr_count($hayStack, $needle); - } - /** * Alias to php ucfirst() function with multibyte support. */ @@ -347,15 +262,6 @@ final class StringUtil { return mb_convert_case($string, MB_CASE_TITLE); } - /** - * Alias to php str_replace() function. - * - * @deprecated please use str_replace() instead - */ - public static function replace($search, $replace, $subject, &$count = null) { - return str_replace($search, $replace, $subject, $count); - } - /** * Alias to php str_ireplace() function with UTF-8 support. *