File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
mbstring /
tests /
mb_convert_kana.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:47:57 2012 UTC (12 years, 6 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
--TEST--
Testing mb_convert_kana() function
--SKIPIF--
<?php
if (!extension_loaded('mbstring')) die('skip mbstring not enabled');
if (!function_exists("mb_convert_kana")) print "skip mb_convert_kana() not available";
?>
--FILE--
<?php
$zenKakuA = 'ァアィイゥウェエォオカガキギク';
$zenKakuB = 'グケゲコゴサザシジスズセゼソゾタ';
$zenKakuC = 'ダチヂッツヅテデトドナニヌネノハ';
$zenKakuD = 'バパヒビピフブプヘベペホボポマミ';
$zenKakuE = 'ムメモャヤュユョヨラリルレロヮワ';
$zenKakuF = 'ヰヱヲンヴヵヶヷヸヹヺ・ーヽヾ';
$hanKakuA = '⦆。「」、・ヲァィゥェォャュョッ';
$hanKakuB = 'ーアイウエオカキクケコサシスセソ';
$hanKakuC = 'タチツテトナニヌネノハヒフヘホマ';
$hanKakuD = 'ミムメモヤユヨラリルレロワン゙゚';
echo $zenKakuA . ' => ' . mb_convert_kana($zenKakuA, 'AZKH', 'utf-8');
echo "\n";
echo $zenKakuB . ' => ' . mb_convert_kana($zenKakuB, 'azkh', 'utf-8');
echo "\n";
echo $zenKakuC . ' => ' . mb_convert_kana($zenKakuC, 'azkh', 'utf-8');
echo "\n";
echo $zenKakuD . ' => ' . mb_convert_kana($zenKakuD, 'azkh', 'utf-8');
echo "\n";
echo $zenKakuE . ' => ' . mb_convert_kana($zenKakuE, 'azkh', 'utf-8');
echo "\n";
echo $zenKakuF . ' => ' . mb_convert_kana($zenKakuF, 'azkh', 'utf-8');
echo "\n";
echo "\n";
echo $hanKakuA . ' => ' . mb_convert_kana($hanKakuA, 'AZKH', 'utf-8');
echo "\n";
echo $hanKakuB . ' => ' . mb_convert_kana($hanKakuB, 'AZKH', 'utf-8');
echo "\n";
echo $hanKakuC . ' => ' . mb_convert_kana($hanKakuC, 'AZKH', 'utf-8');
echo "\n";
echo $hanKakuD . ' => ' . mb_convert_kana($hanKakuD, 'AZKH', 'utf-8');
?>
--EXPECT--
ァアィイゥウェエォオカガキギク => ァアィイゥウェエォオカガキギク
グケゲコゴサザシジスズセゼソゾタ => グケゲコゴサザシジスズセゼソゾタ
ダチヂッツヅテデトドナニヌネノハ => ダチヂッツヅテデトドナニヌネノハ
バパヒビピフブプヘベペホボポマミ => バパヒビピフブプヘベペホボポマミ
ムメモャヤュユョヨラリルレロヮワ => ムメモャヤュユョヨラリルレロワワ
ヰヱヲンヴヵヶヷヸヹヺ・ーヽヾ => イエヲンヴヵヶヷヸヹヺ・ーヽヾ
⦆。「」、・ヲァィゥェォャュョッ => ⦆。「」、・ヲァィゥェォャュョッ
ーアイウエオカキクケコサシスセソ => ーアイウエオカキクケコサシスセソ
タチツテトナニヌネノハヒフヘホマ => タチツテトナニヌネノハヒフヘホマ
ミムメモヤユヨラリルレロワン゙゚ => ミムメモヤユヨラリルレロワン゛゜
--CREDITS--
Jason Easter <easter@phpug-wuerzburg.de>
PHPUG Würzburg <phpug-wuerzburg.de>
Testfest 2009 2009-06-20
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>