[svn r20729] FS#306 - The multi-byte string library: Removing the function api_lcfirst(), it is useless.

skala
Ivan Tcholakov 16 years ago
parent 7fabddbb41
commit 5e62b06592
  1. 15
      main/inc/lib/multibyte_string_functions.lib.php

@ -411,21 +411,6 @@ function api_eregi_replace($pattern, $replacement, $string, $option = null) {
} }
} }
/**
* Returns a string with the first character lowercased if that character is alphabetic.
* @param string $string The input string.
* @param string $encoding The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
* @return string The result string.
* This function is aimed at replacing the function lcfirst() for human-language strings.
* @link http://php.net/manual/en/function.lcfirst
*/
function api_lcfirst($string, $encoding = null) {
if (empty($encoding)) {
$encoding = api_mb_internal_encoding();
}
return api_strtolower(api_substr($string, 0, 1, $encoding), $encoding) . api_substr($string, 1, api_strlen($string, $encoding), $encoding);
}
/** /**
* Splits a multibyte string using regular expression pattern and returns the result as an array. * Splits a multibyte string using regular expression pattern and returns the result as an array.
* By default this function uses the platform character set. * By default this function uses the platform character set.

Loading…
Cancel
Save