Project

General

Profile

Bug #18122 » strtoupper_strtolower.diff

Administrator Admin, 2008-02-05 13:40

View differences:

t3lib/class.t3lib_div.php (working copy)
return chr(10).htmlspecialchars($content);
}
/**
* convert String to uppercase
* this is substitution for strtoupper to avoid locale problems with Turkish
*
* @param string Input string
* @return string Uppercase String
*/
public static function strtoupper($str) {
return strtr((string) $str,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ');
}
/**
* convert String to lowercase
* this is substitution for strtolower to avoid locale problems with Turkish
*
* @param string Input string
* @return string Lowercase String
*/
public static function strtolower($str) {
return strtr((string) $str, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz');
}
......
/*************************
*
* ARRAY FUNCTIONS
(1-1/2)