|
@@ -1041,18 +1041,6 @@ function api_strcasecmp($string1, $string2, $language = null, $encoding = null)
|
|
|
return api_strcmp(api_strtolower($string1, $encoding), api_strtolower($string2, $encoding), $language, $encoding);
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * Performs reverse string comparison, case insensitive, language sensitive, with extended multibyte support.
|
|
|
- * @param string $string1 The first string.
|
|
|
- * @param string $string2 The second string.
|
|
|
- * @param string $language (optional) The language in which comparison is to be made. If language is omitted, interface language is assumed then.
|
|
|
- * @param string $encoding (optional) The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
|
|
|
- * @return int Returns < 0 if $string2 is less than $string1; > 0 if $string2 is greater than $string1; and 0 if the strings are equal.
|
|
|
- */
|
|
|
-function api_strcasercmp($string1, $string2, $language = null, $encoding = null) {
|
|
|
- return api_strcasecmp($string2, $string1, $language, $encoding);
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* Performs string comparison, case sensitive, language sensitive, with extended multibyte support.
|
|
|
* @param string $string1 The first string.
|
|
@@ -1075,18 +1063,6 @@ function api_strcmp($string1, $string2, $language = null, $encoding = null) {
|
|
|
return strcmp($string1, $string2);
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * Performs reverse string comparison, case sensitive, language sensitive, with extended multibyte support.
|
|
|
- * @param string $string1 The first string.
|
|
|
- * @param string $string2 The second string.
|
|
|
- * @param string $language (optional) The language in which comparison is to be made. If language is omitted, interface language is assumed then.
|
|
|
- * @param string $encoding (optional) The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
|
|
|
- * @return int Returns < 0 if $string2 is less than $string1; > 0 if $string2 is greater than $string1; and 0 if the strings are equal.
|
|
|
- */
|
|
|
-function api_strrcmp($string1, $string2, $language = null, $encoding = null) {
|
|
|
- return api_strcmp($string2, $string1, $language, $encoding);
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* Performs string comparison in so called "natural order", case insensitive, language sensitive, with extended multibyte support.
|
|
|
* @param string $string1 The first string.
|
|
@@ -1101,18 +1077,6 @@ function api_strnatcasecmp($string1, $string2, $language = null, $encoding = nul
|
|
|
return api_strnatcmp(api_strtolower($string1, $encoding), api_strtolower($string2, $encoding), $language, $encoding);
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * Performs reverse string comparison in so called "natural order", case insensitive, language sensitive, with extended multibyte support.
|
|
|
- * @param string $string1 The first string.
|
|
|
- * @param string $string2 The second string.
|
|
|
- * @param string $language (optional) The language in which comparison is to be made. If language is omitted, interface language is assumed then.
|
|
|
- * @param string $encoding (optional) The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
|
|
|
- * @return int Returns < 0 if $string2 is less than $string1; > 0 if $string2 is greater than $string1; and 0 if the strings are equal.
|
|
|
- */
|
|
|
-function api_strnatcasercmp($string1, $string2, $language = null, $encoding = null) {
|
|
|
- return api_strnatcmp(api_strtolower($string2, $encoding), api_strtolower($string1, $encoding), $language, $encoding);
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* Performs string comparison in so called "natural order", case sensitive, language sensitive, with extended multibyte support.
|
|
|
* @param string $string1 The first string.
|
|
@@ -1135,18 +1099,6 @@ function api_strnatcmp($string1, $string2, $language = null, $encoding = null) {
|
|
|
return strnatcmp($string1, $string2);
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * Performs reverse string comparison in so called "natural order", case sensitive, language sensitive, with extended multibyte support.
|
|
|
- * @param string $string1 The first string.
|
|
|
- * @param string $string2 The second string.
|
|
|
- * @param string $language (optional) The language in which comparison is to be made. If language is omitted, interface language is assumed then.
|
|
|
- * @param string $encoding (optional) The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
|
|
|
- * @return int Returns < 0 if $string2 is less than $string1; > 0 if $string2 is greater than $string1; and 0 if the strings are equal.
|
|
|
- */
|
|
|
-function api_strnatrcmp($string1, $string2, $language = null, $encoding = null) {
|
|
|
- return api_strnatcmp($string2, $string1, $language, $encoding);
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* Checks if a value exists in an array, a case insensitive version of in_array() function with extended multibyte support.
|
|
|
* @param mixed $needle The searched value. If needle is a string, the comparison is done in a case-insensitive manner.
|