| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @version $Id: case.php 10381 2008-06-01 03:35:53Z pasamio $ 4 * @package utf8 5 * @subpackage strings 6 */ 7 8 /** 9 * Define UTF8_CASE as required 10 */ 11 if ( !defined('UTF8_CASE') ) { 12 define('UTF8_CASE',TRUE); 13 } 14 15 //-------------------------------------------------------------------- 16 /** 17 * Assumes mbstring internal encoding is set to UTF-8 18 * Wrapper around mb_strtolower 19 * Make a string lowercase 20 * Note: The concept of a characters "case" only exists is some alphabets 21 * such as Latin, Greek, Cyrillic, Armenian and archaic Georgian - it does 22 * not exist in the Chinese alphabet, for example. See Unicode Standard 23 * Annex #21: Case Mappings 24 * @param string 25 * @return mixed either string in lowercase or FALSE is UTF-8 invalid 26 * @package utf8 27 * @subpackage strings 28 */ 29 function utf8_strtolower($str){ 30 return mb_strtolower($str); 31 } 32 33 //-------------------------------------------------------------------- 34 /** 35 * Assumes mbstring internal encoding is set to UTF-8 36 * Wrapper around mb_strtoupper 37 * Make a string uppercase 38 * Note: The concept of a characters "case" only exists is some alphabets 39 * such as Latin, Greek, Cyrillic, Armenian and archaic Georgian - it does 40 * not exist in the Chinese alphabet, for example. See Unicode Standard 41 * Annex #21: Case Mappings 42 * @param string 43 * @return mixed either string in lowercase or FALSE is UTF-8 invalid 44 * @package utf8 45 * @subpackage strings 46 */ 47 function utf8_strtoupper($str){ 48 return mb_strtoupper($str); 49 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |