Home
last modified time | relevance | path

Searched refs:UConverter (Results 1 – 16 of 16) sorted by relevance

/PHP-7.2/ext/intl/tests/
H A Duconverter_oop_algo.phpt2 UConverter Algorithmic converters
7 $c = new UConverter('utf-8', 'latin1');
8 var_dump(UConverter::LATIN_1 === $c->getSourceType());
9 var_dump(UConverter::UTF8 === $c->getDestinationType());
11 $c = new UConverter('koi8-r', 'utf-32be');
12 var_dump(UConverter::UTF32_BigEndian === $c->getSourceType());
13 var_dump(UConverter::SBCS === $c->getDestinationType());
H A Dbug75317.phpt2 Bug #75317 (UConverter::setDestinationEncoding changes source instead of destinatination)
9 $utf8 = UConverter::getAliases('utf-8')[0];
10 $utf16 = UConverter::getAliases('utf-16')[0];
11 $utf32 = UConverter::getAliases('utf-32')[0];
12 $latin1 = UConverter::getAliases('latin1')[0];
19 $c = new UConverter();
24 $c = new UConverter('utf-16', 'latin1');
H A Duconverter___construct_error.phpt2 Basic UConverter::convert() usage
9 $c = new UConverter('utf-8', "\x80");
12 Warning: UConverter::__construct(): ucnv_open() returned error 4: U_FILE_ACCESS_ERROR in %s on line…
13 object(UConverter)#%d (0) {
H A Duconverter_func_basic.phpt2 Basic UConverter::transcode() usage
7 var_dump(UConverter::transcode("This is an ascii string", 'utf-8', 'latin1'));
9 var_dump(urlencode(UConverter::transcode("Espa\xF1ol", 'utf-8', 'latin1')));
10 var_dump(urlencode(UConverter::transcode("Stra\xDFa", 'utf-8', 'latin1')));
12 var_dump(bin2hex(UConverter::transcode("\xE4", 'utf-8', 'koi8-r')));
H A Duconverter_getAvailable_wrongparam_001.phpt2 Check the function UConverter::getAvailable with parameter wrong
6 <?php UConverter::getAvailable("This is an ascii string"); ?>
8 Warning: UConverter::getAvailable() expects exactly 0 parameters, 1 given in %s on line %d
H A Duconverter_enum.phpt2 UConverter Enumerations
7 $avail = UConverter::getAvailable();
13 $latin1 = UConverter::getAliases('latin1');
H A Duconverter_oop_callback.phpt2 UConverter::convert() w/ Callback Reasons
8 class MyConverter extends UConverter {
13 echo "toUCallback(", UConverter::reasonText($reason), ", ...)\n";
21 echo "fromUCallback(", UConverter::reasonText($reason), ", ...)\n";
H A Duconverter_oop_callback2.phpt2 UConverter::convert() w/ Callback Reasons
8 class MyConverter extends UConverter {
13 echo "toUCallback(", UConverter::reasonText($reason), ", ...)\n";
21 echo "fromUCallback(", UConverter::reasonText($reason), ", ...)\n";
H A Duconverter_bug66873.phpt2 Bug #66873 - crash in UConverter with invalid encoding
7 $o = new UConverter(1, 1);
H A Duconverter_func_subst.phpt2 Basic UConverter::convert() w/ Subsitution
11 $ret = UConverter::transcode("This is an ascii string", 'ascii', 'utf-8', $opts);
17 $ret = UConverter::transcode("Snowman: (\xE2\x98\x83)", 'ascii', 'utf-8', $opts);
H A Dbug75318.phpt2 Bug #75318 (The parameter of UConverter::getAliases() is not optional)
9 $rm = new ReflectionMethod('UConverter', 'getAliases');
H A Duconverter_oop_basic.phpt2 Basic UConverter::convert() usage
7 $c = new UConverter('utf-8', 'latin1');
14 $k = new UConverter('utf-8', 'koi8-r');
H A Duconverter_oop_subst.phpt2 Basic UConverter::convert() w/ Subsitution
9 $c = new UConverter('ascii', 'utf-8');
H A Duconverter_oop_callback_return.phpt2 UConverter::convert() w/ Callback Return Values
7 class MyConverter extends UConverter {
/PHP-7.2/ext/intl/converter/
H A Dconverter.c28 UConverter *src, *dest;
117 static PHP_METHOD(UConverter, toUCallback) { in PHP_METHOD() argument
139 static PHP_METHOD(UConverter, fromUCallback) { in PHP_METHOD() argument
379 UConverter *cnv = ucnv_open(enc, &error); in php_converter_set_encoding()
554 static PHP_METHOD(UConverter, __construct) { in PHP_METHOD() argument
717 static PHP_METHOD(UConverter, reasonText) { in PHP_METHOD() argument
747 static PHP_METHOD(UConverter, convert) { in PHP_METHOD() argument
782 static PHP_METHOD(UConverter, transcode) { in PHP_METHOD() argument
843 static PHP_METHOD(UConverter, getErrorCode) { in PHP_METHOD() argument
880 static PHP_METHOD(UConverter, getAvailable) { in PHP_METHOD() argument
[all …]
/PHP-7.2/
H A DNEWS1680 . Fixed bug #75317 (UConverter::setDestinationEncoding changes source instead
1734 . Fixed bug #75318 (The parameter of UConverter::getAliases() is not

Completed in 32 milliseconds