Home
last modified time | relevance | path

Searched refs:fmt (Results 51 – 75 of 93) sorted by last modified time

1234

/PHP-7.4/ext/intl/tests/
H A Dmsgfmt_get_set_pattern.phpt16 $fmt = ut_msgfmt_create( "en_US", "{0,number} monkeys on {1,number} trees" );
19 $res_str .= "Default pattern: '" . ut_msgfmt_get_pattern( $fmt ) . "'\n";
20 $res_str .= "Formatting result: " . ut_msgfmt_format( $fmt, array(123, 456) ) . "\n";
24 $res = ut_msgfmt_set_pattern( $fmt, $pattern );
26 … $res_str .= ut_msgfmt_get_error_message( $fmt ) . " (" . ut_msgfmt_get_error_code( $fmt ) . ")\n";
29 $res = ut_msgfmt_get_pattern( $fmt );
31 … $res_str .= ut_msgfmt_get_error_message( $fmt ) . " (" . ut_msgfmt_get_error_code( $fmt ) . ")\n";
32 $res_str .= "New pattern: '" . ut_msgfmt_get_pattern( $fmt ) . "'\n";
33 $res_str .= "Formatted message: " . ut_msgfmt_format( $fmt, array(123, 456) ) . "\n";
35 ut_msgfmt_set_pattern($fmt, str_repeat($pattern, 10));
[all …]
H A Ddateformat_format.phpt95 …$fmt = ut_datefmt_create( $locale_entry , $datetype_entry ,$datetype_entry, $timezone, IntlDateFor…
96 $formatted = ut_datefmt_format( $fmt , $timestamp_entry);
115 …$fmt = ut_datefmt_create( $locale_entry , $datetype_entry ,$datetype_entry, $timezone, IntlDateFor…
116 $formatted1 = ut_datefmt_format( $fmt , $localtime_entry);
133 …$fmt = ut_datefmt_create( $locale_entry , $datetype_entry ,$datetype_entry, $timezone, IntlDateFor…
134 $formatted1 = ut_datefmt_format( $fmt , $date_entry);
H A Ddateformat_format_parse.phpt81 $fmt = ut_datefmt_create( $locale_entry , $datetype_entry ,$datetype_entry,$timezone);
82 $formatted = ut_datefmt_format( $fmt , $timestamp_entry);
84 $parsed = ut_datefmt_parse( $fmt , $formatted);
106 $fmt = ut_datefmt_create( $locale_entry , $datetype_entry ,$datetype_entry,$timezone);
107 $formatted1 = ut_datefmt_format( $fmt , $localtime_entry);
114 $parsed_arr = ut_datefmt_localtime( $fmt, $formatted1 );
H A Ddateformat_format_parse_version2.phpt81 $fmt = ut_datefmt_create( $locale_entry , $datetype_entry ,$datetype_entry,$timezone);
82 $formatted = ut_datefmt_format( $fmt , $timestamp_entry);
84 $parsed = ut_datefmt_parse( $fmt , $formatted);
106 $fmt = ut_datefmt_create( $locale_entry , $datetype_entry ,$datetype_entry,$timezone);
107 $formatted1 = ut_datefmt_format( $fmt , $localtime_entry);
114 $parsed_arr = ut_datefmt_localtime( $fmt, $formatted1 );
H A Ddateformat_format_variant2.phpt95 …$fmt = ut_datefmt_create( $locale_entry , $datetype_entry ,$datetype_entry, $timezone, IntlDateFor…
96 $formatted = ut_datefmt_format( $fmt , $timestamp_entry);
115 …$fmt = ut_datefmt_create( $locale_entry , $datetype_entry ,$datetype_entry, $timezone, IntlDateFor…
116 $formatted1 = ut_datefmt_format( $fmt , $localtime_entry);
133 …$fmt = ut_datefmt_create( $locale_entry , $datetype_entry ,$datetype_entry, $timezone, IntlDateFor…
134 $formatted1 = ut_datefmt_format( $fmt , $date_entry);
H A Ddateformat_get_datetype.phpt28 …$fmt = ut_datefmt_create( "de-DE", $datetype_entry , IntlDateFormatter::SHORT,'America/Los_Angele…
29 $date_type = ut_datefmt_get_datetype( $fmt);
H A Ddateformat_get_set_pattern2.phpt26 …//$fmt = ut_datefmt_create( "en-US", IntlDateFormatter::SHORT, IntlDateFormatter::SHORT , 'Americ…
27 …$fmt = ut_datefmt_create( "en-US", IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/New…
28 $pattern = ut_datefmt_get_pattern( $fmt);
30 $formatted = ut_datefmt_format($fmt,0);
38 ut_datefmt_set_pattern( $fmt , $pattern_entry );
39 $pattern = ut_datefmt_get_pattern( $fmt);
41 $formatted = ut_datefmt_format($fmt,0);
H A Ddateformat_get_timetype.phpt28 …$fmt = ut_datefmt_create( "de-DE", IntlDateFormatter::SHORT, $timetype_entry ,'America/Los_Angele…
29 $time_type = ut_datefmt_get_timetype( $fmt);
H A Ddateformat_get_timezone_id.phpt29 …$fmt = ut_datefmt_create( "de-DE", IntlDateFormatter::SHORT, IntlDateFormatter::SHORT, $timezone_…
30 $timezone_id = ut_datefmt_get_timezone_id( $fmt);
H A Ddateformat_is_set_lenient.phpt19 …$fmt = ut_datefmt_create( "en-US", IntlDateFormatter::SHORT, IntlDateFormatter::SHORT , 'America/…
22 $resLenient1 = ut_datefmt_is_lenient( $fmt);
39 ut_datefmt_set_lenient( $fmt , $isLenient );
40 $resLenient = ut_datefmt_is_lenient( $fmt);
58 ut_datefmt_set_lenient( $fmt , $isLenient);
59 $resLenient = ut_datefmt_is_lenient( $fmt);
H A Dformatter_clone.phpt14 $fmt = new NumberFormatter( "en_US", NumberFormatter::PATTERN_DECIMAL );
15 $res_str .= "Formatted number: " . ut_nfmt_format( $fmt, $test_value ) . "\n";
16 $fmt_clone = clone $fmt;
18 $res = $fmt->setPattern("0.0" );
20 $res_str .= ut_nfmt_get_error_message( $fmt ) . " (" . ut_nfmt_get_error_code( $fmt ) . ")\n";
22 $res_str .= "Formatted number: " . ut_nfmt_format( $fmt, $test_value ) . "\n";
H A Dformatter_format2.phpt53 $fmt = ut_nfmt_create( $locale, $style, $pattern );
55 if(!$fmt) {
59 …mp( isset($integer[$style])?ut_nfmt_format( $fmt, $number, NumberFormatter::TYPE_INT32):ut_nfmt_fo…
H A Dformatter_format3.phpt54 $fmt = ut_nfmt_create( $locale, $style, $pattern );
56 if(!$fmt) {
60 …mp( isset($integer[$style])?ut_nfmt_format( $fmt, $number, NumberFormatter::TYPE_INT32):ut_nfmt_fo…
H A Dformatter_format4.phpt54 $fmt = ut_nfmt_create( $locale, $style, $pattern );
56 if(!$fmt) {
60 …mp( isset($integer[$style])?ut_nfmt_format( $fmt, $number, NumberFormatter::TYPE_INT32):ut_nfmt_fo…
H A Dformatter_format5.phpt54 $fmt = ut_nfmt_create( $locale, $style, $pattern );
56 if(!$fmt) {
60 …mp( isset($integer[$style])?ut_nfmt_format( $fmt, $number, NumberFormatter::TYPE_INT32):ut_nfmt_fo…
H A Dformatter_format6.phpt54 $fmt = ut_nfmt_create( $locale, $style, $pattern );
56 if(!$fmt) {
60 …mp( isset($integer[$style])?ut_nfmt_format( $fmt, $number, NumberFormatter::TYPE_INT32):ut_nfmt_fo…
H A Dformatter_format7.phpt54 $fmt = ut_nfmt_create( $locale, $style, $pattern );
56 if(!$fmt) {
60 …mp( isset($integer[$style])?ut_nfmt_format( $fmt, $number, NumberFormatter::TYPE_INT32):ut_nfmt_fo…
H A Dformatter_format8.phpt53 $fmt = ut_nfmt_create( $locale, $style, $pattern );
55 if(!$fmt) {
59 …mp( isset($integer[$style])?ut_nfmt_format( $fmt, $number, NumberFormatter::TYPE_INT32):ut_nfmt_fo…
H A Dformatter_format_conv.phpt10 $fmt = ut_nfmt_create( 'en_US', NumberFormatter::DECIMAL );
13 $str_res = ut_nfmt_format ($fmt, $number, NumberFormatter::TYPE_INT32)."\n";
H A Dformatter_format_currency2.phpt32 $fmt = ut_nfmt_create( $locale, NumberFormatter::CURRENCY );
33 …$res_str .= "$locale: " . var_export( ut_nfmt_format_currency( $fmt, $number, $currency ), true ) …
H A Dformatter_get_error.phpt15 $fmt = ut_nfmt_create( "en_US", NumberFormatter::CURRENCY );
18 $num = ut_nfmt_parse_currency( $fmt, '123.45', $currency, $pos );
20 return $fmt->getErrorMessage() . " (" . $fmt->getErrorCode() . ")\n";
H A Dformatter_get_locale.phpt30 $fmt = ut_nfmt_create( $locale, NumberFormatter::DECIMAL );
35 dump( ut_nfmt_get_locale( $fmt, $loc_type ) ) );
H A Dformatter_get_locale_variant2.phpt31 $fmt = ut_nfmt_create( $locale, NumberFormatter::DECIMAL );
36 dump( ut_nfmt_get_locale( $fmt, $loc_type ) ) );
H A Dformatter_get_locale_variant4.phpt30 $fmt = ut_nfmt_create( $locale, NumberFormatter::DECIMAL );
35 dump( ut_nfmt_get_locale( $fmt, $loc_type ) ) );
H A Dformatter_get_set_pattern.phpt18 $fmt = ut_nfmt_create( "en_US", NumberFormatter::PATTERN_DECIMAL );
21 $res_str .= "Default pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
22 $res_str .= "Formatting result: " . ut_nfmt_format( $fmt, $test_value ) . "\n";
25 $res = ut_nfmt_set_pattern( $fmt, "0.0" );
27 … $res_str .= ut_nfmt_get_error_message( $fmt ) . " (" . ut_nfmt_get_error_code( $fmt ) . ")\n";
30 $res = ut_nfmt_get_pattern( $fmt );
32 … $res_str .= ut_nfmt_get_error_message( $fmt ) . " (" . ut_nfmt_get_error_code( $fmt ) . ")\n";
33 $res_str .= "New pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
34 $res_str .= "Formatted number: " . ut_nfmt_format( $fmt, $test_value ) . "\n";
36 ut_nfmt_set_pattern($fmt, str_repeat('@', 200));
[all …]

Completed in 67 milliseconds

1234