Annotation of embedaddon/php/ext/intl/tests/transliterator_transliterate_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Transliterator::transliterate (basic)
3: --SKIPIF--
4: <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
5: --FILE--
6: <?php
7: $t = transliterator_create("Latin; Title");
8: $s = "Κοντογιαννάτος, Βασίλης";
9: echo $t->transliterate($s),"\n";
10: echo transliterator_transliterate($t, $s),"\n";
11: echo $t->transliterate($s, 3),"\n";
12: echo $t->transliterate($s, 3, 4),"\n";
13:
14: echo "Done.\n";
15: --EXPECT--
16: Kontogiannátos, Basílēs
17: Kontogiannátos, Basílēs
18: ΚονTogiannátos, Basílēs
19: ΚονTογιαννάτος, Βασίλης
20: Done.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>