CoreFiles by mySites.guru
case.php49 lines, 1,456 bytes, from Joomla_1.5.0-Stable-Full_Package.zip
Raw History Compare with 1.0.15
md5
a36d87f2e755b6947ed0a724d8920da5
sha1
fc3a6828a9d5591c548157e0df1c934e1da21aac
sha256
e9b32c6d4a9675447f57a06ef7b015d9c0969b0de291356483e258b7e429a3ac
<?php
/**
* @version $Id: case.php 7692 2007-06-08 20:41:29Z tcp $
* @package utf8
* @subpackage strings
*/

/**
* Define UTF8_CASE as required
*/
if ( !defined('UTF8_CASE') ) {
    define('UTF8_CASE',TRUE);
}

//--------------------------------------------------------------------
/**
* 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
* @param string
* @return mixed either string in lowercase or FALSE is UTF-8 invalid
* @package utf8
* @subpackage strings
*/
function utf8_strtolower($str){
    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
* @param string
* @return mixed either string in lowercase or FALSE is UTF-8 invalid
* @package utf8
* @subpackage strings
*/
function utf8_strtoupper($str){
    return mb_strtoupper($str);
}

The same content is in 4 releases, Joomla 1.5.0 to 1.5.3. See them all, or every version of this file.