2002-10-21 09:44:59 +08:00
|
|
|
|
--TEST--
|
|
|
|
|
mb_strtoupper() / mb_strtolower()
|
|
|
|
|
--SKIPIF--
|
2002-10-30 16:06:52 +08:00
|
|
|
|
<?php
|
|
|
|
|
extension_loaded('mbstring') or die('skip mbstring not available');
|
2002-10-24 04:38:18 +08:00
|
|
|
|
function_exists('mb_strtolower') and
|
2002-11-15 23:34:57 +08:00
|
|
|
|
function_exists('mb_convert_case' ) or die("skip mb_convert_case() is not available");
|
2002-10-30 16:06:52 +08:00
|
|
|
|
?>
|
2002-11-03 16:37:59 +08:00
|
|
|
|
--INI--
|
|
|
|
|
output_handler=
|
2002-10-21 09:44:59 +08:00
|
|
|
|
--FILE--
|
2002-10-22 03:19:05 +08:00
|
|
|
|
<?php
|
2002-10-23 04:34:53 +08:00
|
|
|
|
mb_internal_encoding( 'ISO-8859-1' );
|
2002-10-22 03:19:05 +08:00
|
|
|
|
print mb_strtolower( "ABCDEFGHIJKLMNOPQRSTUVWXYZ\n" );
|
|
|
|
|
print mb_strtoupper( mb_strtolower( "ABCDEFGHIJKLMNOPQRSTUVWXYZ\n" ) );
|
2002-10-23 04:34:53 +08:00
|
|
|
|
print mb_strtoupper( "<22><><EFBFBD>\n" );
|
2002-10-24 04:38:18 +08:00
|
|
|
|
print mb_convert_case( "<22><><EFBFBD>\n", MB_CASE_TITLE );
|
2002-10-22 03:19:05 +08:00
|
|
|
|
?>
|
|
|
|
|
|
2002-10-21 09:44:59 +08:00
|
|
|
|
--EXPECT--
|
|
|
|
|
abcdefghijklmnopqrstuvwxyz
|
|
|
|
|
ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
2002-10-23 04:34:53 +08:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD>
|
2002-10-24 04:38:18 +08:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD>
|