Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: utf8

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5
Source code for file /phputf8/mbstring/case.php

Documentation is available at case.php

  1. <?php
  2. /**
  3. @version $Id: case.php,v 1.2 2006/02/25 14:10:37 harryf Exp $
  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. }

Documentation generated on Mon, 05 Mar 2007 20:53:48 +0000 by phpDocumentor 1.3.1