diff -u -r1.27 String.inc.php --- classes/core/String.inc.php 3 Feb 2010 13:54:48 -0000 1.27 +++ classes/core/String.inc.php 12 Feb 2010 17:44:40 -0000 @@ -13,7 +13,7 @@ * */ -// $Id: String.inc.php,v 1.26 2010/02/03 11:59:03 jerico.dev Exp $ +// $Id: String.inc.php,v 1.27 2010/02/03 13:54:48 jerico.dev Exp $ /* * Perl-compatibile regular expression (PCRE) constants: @@ -204,6 +204,21 @@ } /** + * @see http://ca.php.net/manual/en/function.ucfirst.php + */ + function ucfirst($string) { + if (defined('ENABLE_MBSTRING')) { + require_once 'mbstring/core.php'; + require_once 'ucfirst.php'; + } else { + require_once 'utils/unicode.php'; + require_once 'native/core.php'; + require_once 'ucfirst.php'; + } + return utf8_ucfirst($string); + } + + /** * @see http://ca.php.net/manual/en/function.substr_count.php */ function substr_count($haystack, $needle) {