mirror of
https://github.com/php/php-src.git
synced 2024-10-02 15:26:06 +00:00
e283f7a7fe
- Changes request #52986 to "to be documented".
29 lines
555 B
PHP
29 lines
555 B
PHP
--TEST--
|
||
Transliterator::createFromRules (basic)
|
||
--SKIPIF--
|
||
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
|
||
--FILE--
|
||
<?php
|
||
ini_set("intl.error_level", E_WARNING);
|
||
|
||
$rules = <<<RULES
|
||
α <> y;
|
||
\`\` } a > “;
|
||
RULES;
|
||
|
||
$t = Transliterator::createFromRules($rules);
|
||
echo $t->id,"\n";
|
||
|
||
echo $t->transliterate("``akk ``bkk ``aooy"),"\n";
|
||
|
||
$u = transliterator_create_from_rules($rules, Transliterator::REVERSE);
|
||
|
||
echo $u->transliterate("``akk ``bkk ``aooy"), "\n";
|
||
|
||
echo "Done.\n";
|
||
--EXPECT--
|
||
RulesTransPHP
|
||
“akk ``bkk “aooy
|
||
``akk ``bkk ``aooα
|
||
Done.
|