Source code for file /phputf8/mbstring/case.php
Documentation is available at case.php
* @version $Id: case.php,v 1.2 2006/02/25 14:10:37 harryf Exp $
* Define UTF8_CASE as required
//--------------------------------------------------------------------
* Assumes mbstring internal encoding is set to UTF-8
* Wrapper around mb_strtolower
* Make a string lowercase
* Note: The concept of a characters "case" only exists is some alphabets
* such as Latin, Greek, Cyrillic, Armenian and archaic Georgian - it does
* not exist in the Chinese alphabet, for example. See Unicode Standard
* Annex #21: Case Mappings
* @return mixed either string in lowercase or FALSE is UTF-8 invalid
return mb_strtolower($str);
//--------------------------------------------------------------------
* Assumes mbstring internal encoding is set to UTF-8
* Wrapper around mb_strtoupper
* Make a string uppercase
* Note: The concept of a characters "case" only exists is some alphabets
* such as Latin, Greek, Cyrillic, Armenian and archaic Georgian - it does
* not exist in the Chinese alphabet, for example. See Unicode Standard
* Annex #21: Case Mappings
* @return mixed either string in lowercase or FALSE is UTF-8 invalid
return mb_strtoupper($str);