Home
last modified time | relevance | path

Searched refs:fmt (Results 1 – 25 of 96) sorted by relevance

1234

/PHP-5.6/ext/intl/doc/
H A Ddatefmt_api.php273 function datefmt_format($fmt , $value) {} argument
289 function datefmt_parse($fmt , $value, $parse_pos=0) {} argument
313 function datefmt_get_datetype($fmt ) {} argument
321 function datefmt_get_timetype($fmt) {} argument
330 function datefmt_is_lenient($fmt) {} argument
345 function datefmt_set_lenient($fmt , $lenient) {} argument
365 function datefmt_get_timezone_id($fmt) {} argument
398 function datefmt_get_calendar($fmt) {} argument
406 function datefmt_get_pattern($fmt) {} argument
427 function datefmt_get_error_code($fmt) {} argument
[all …]
H A Dmsgfmt_api.php125 * @param MessageFormatter $fmt The message formatter
129 function msgfmt_format($fmt, $args) {} argument
137 * @param MessageFormatter $fmt The message formatter
142 function msgfmt_parse($fmt, $value) {} argument
171 * @param MessageFormatter $fmt The message formatter
174 function msgfmt_get_pattern($fmt) {} argument
179 * @param MessageFormatter $fmt The message formatter
183 function msgfmt_set_pattern($fmt, $pattern) {} argument
190 * @param MessageFormatter $fmt The message formatter
193 function msgfmt_get_error_code($fmt) {} argument
[all …]
/PHP-5.6/ext/intl/tests/
H A Dut_common.inc191 return $GLOBALS['oo-mode'] ? $fmt->getPattern() : numfmt_get_pattern( $fmt );
199 return $GLOBALS['oo-mode'] ? $fmt->getErrorCode() : numfmt_get_error_code( $fmt );
297 return $GLOBALS['oo-mode'] ? $fmt->format( $args ) : msgfmt_format( $fmt, $args);
301 return $GLOBALS['oo-mode'] ? $fmt->parse( $string) : msgfmt_parse( $fmt, $string);
317 return $GLOBALS['oo-mode'] ? $fmt->getPattern() : msgfmt_get_pattern( $fmt );
321 return $GLOBALS['oo-mode'] ? $fmt->getLocale( ) : msgfmt_get_locale( $fmt );
338 return $GLOBALS['oo-mode'] ? $fmt->getDateType( ) : datefmt_get_datetype( $fmt );
342 return $GLOBALS['oo-mode'] ? $fmt->getTimeType( ) : datefmt_get_timetype( $fmt );
346 return $GLOBALS['oo-mode'] ? $fmt->getCalendar( ) : datefmt_get_calendar( $fmt );
362 return $GLOBALS['oo-mode'] ? $fmt->getPattern() : datefmt_get_pattern( $fmt );
[all …]
H A Dformatter_get_set_pattern.phpt17 $fmt = ut_nfmt_create( "en_US", NumberFormatter::PATTERN_DECIMAL );
20 $res_str .= "Default pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
21 $res_str .= "Formatting result: " . ut_nfmt_format( $fmt, $test_value ) . "\n";
24 $res = ut_nfmt_set_pattern( $fmt, "0.0" );
26 … $res_str .= ut_nfmt_get_error_message( $fmt ) . " (" . ut_nfmt_get_error_code( $fmt ) . ")\n";
29 $res = ut_nfmt_get_pattern( $fmt );
31 … $res_str .= ut_nfmt_get_error_message( $fmt ) . " (" . ut_nfmt_get_error_code( $fmt ) . ")\n";
32 $res_str .= "New pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
33 $res_str .= "Formatted number: " . ut_nfmt_format( $fmt, $test_value ) . "\n";
35 ut_nfmt_set_pattern($fmt, str_repeat('@', 200));
[all …]
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 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 Dmsgfmt_fail.phpt9 function err($fmt) {
10 if(!$fmt) {
39 err($fmt);
41 err($fmt);
43 err($fmt);
45 err($fmt);
47 err($fmt);
49 err($fmt);
53 err($fmt);
55 err($fmt);
[all …]
H A Dmsgfmt_fail2.phpt9 function err($fmt) {
10 if(!$fmt) {
39 err($fmt);
41 err($fmt);
43 err($fmt);
45 err($fmt);
47 err($fmt);
49 err($fmt);
53 err($fmt);
55 err($fmt);
[all …]
H A Dformatter_fail.phpt8 function err($fmt) {
9 if(!$fmt) {
36 $fmt = new NumberFormatter();
37 err($fmt);
38 $fmt = numfmt_create();
39 err($fmt);
40 $fmt = NumberFormatter::create();
41 err($fmt);
45 err($fmt);
47 err($fmt);
[all …]
H A Dbug53735.phpt9 $fmt = numfmt_create("da_DK", \NumberFormatter::CURRENCY);
11 var_dump(numfmt_format($fmt, 5.5));
14 var_dump(numfmt_format($fmt, 5.5));
15 var_dump(numfmt_format($fmt, "5,5"));
18 $fmt = new \NumberFormatter("de_DE", \NumberFormatter::DECIMAL);
19 var_dump($fmt->format(23.25));
H A Dformatter_parse.phpt18 $fmt = ut_nfmt_create( "en_US", NumberFormatter::DECIMAL );
19 $res_str .= ut_nfmt_parse( $fmt, "123E-3" ) . "\n";
22 $fmt = ut_nfmt_create( "en_US", NumberFormatter::DECIMAL );
23 $res_str .= ut_nfmt_parse( $fmt, "1.23", NumberFormatter::TYPE_INT32 ) . "\n";
26 $fmt = ut_nfmt_create( "en_US", NumberFormatter::DECIMAL );
28 $res_str .= ut_nfmt_parse( $fmt, "0.123 here", NumberFormatter::TYPE_DOUBLE, $pos ) . "\n";
H A Dformatter_get_set_text_attribute.phpt32 $fmt = ut_nfmt_create( "en_US", NumberFormatter::DECIMAL );
40 ut_nfmt_set_attribute( $fmt, NumberFormatter::FORMAT_WIDTH, 21 );
43 $def_val = ut_nfmt_get_text_attribute( $fmt, $attr );
45 $res_str .= "get_text_attribute() error: " . ut_nfmt_get_error_message( $fmt ) . "\n";
51 $res_val = ut_nfmt_set_text_attribute( $fmt, $attr, $new_val );
53 $res_str .= "set_text_attribute() error: " . ut_nfmt_get_error_message( $fmt ) . "\n";
56 $new_val_check = ut_nfmt_get_text_attribute( $fmt, $attr );
65 ut_nfmt_set_text_attribute( $fmt, $attr, $def_val );
68 ut_nfmt_set_attribute( $fmt, NumberFormatter::FORMAT_WIDTH, 0 );
72 $fmt = ut_nfmt_create( "uk_UA", NumberFormatter::CURRENCY );
[all …]
H A Dformatter_get_set_text_attribute_var2.phpt32 $fmt = ut_nfmt_create( "en_US", NumberFormatter::DECIMAL );
40 ut_nfmt_set_attribute( $fmt, NumberFormatter::FORMAT_WIDTH, 21 );
43 $def_val = ut_nfmt_get_text_attribute( $fmt, $attr );
45 $res_str .= "get_text_attribute() error: " . ut_nfmt_get_error_message( $fmt ) . "\n";
51 $res_val = ut_nfmt_set_text_attribute( $fmt, $attr, $new_val );
53 $res_str .= "set_text_attribute() error: " . ut_nfmt_get_error_message( $fmt ) . "\n";
56 $new_val_check = ut_nfmt_get_text_attribute( $fmt, $attr );
65 ut_nfmt_set_text_attribute( $fmt, $attr, $def_val );
68 ut_nfmt_set_attribute( $fmt, NumberFormatter::FORMAT_WIDTH, 0 );
72 $fmt = ut_nfmt_create( "uk_UA", NumberFormatter::CURRENCY );
[all …]
H A Dmsgfmt_clone.phpt13 $fmt = ut_msgfmt_create( "en_US", "{0,number} monkeys on {1,number} trees" );
16 $res_str .= "Formatting result: " . ut_msgfmt_format( $fmt, array(123, 456) ) . "\n";
17 $fmt_clone = clone $fmt;
20 $res = ut_msgfmt_set_pattern( $fmt, $pattern );
21 $res_str .= "Formatting result: " . ut_msgfmt_format( $fmt, array(123, 456) ) . "\n";
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_parse_currency.phpt16 $fmt = ut_nfmt_create( "en_US", NumberFormatter::CURRENCY );
19 $num = ut_nfmt_parse_currency( $fmt, '$9,988,776.65', $currency, $pos );
22 $fmt = ut_nfmt_create( "en_US", NumberFormatter::CURRENCY );
25 $num = ut_nfmt_parse_currency( $fmt, ' $123.45', $currency, $pos );
H A Dbug14562.phpt12 $fmt = new NumberFormatter("de", NumberFormatter::DECIMAL );
13 $numeric = $fmt->parse("1234,56");
16 $fmt = new NumberFormatter("de", NumberFormatter::DECIMAL );
17 $numeric = $fmt->parse("1234,56");
H A Ddateformat_clone2.phpt15 $fmt = ut_datefmt_create( "en-US", IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/New_…
17 $formatted = ut_datefmt_format($fmt,0);
20 $fmt_clone = clone $fmt;
21 ut_datefmt_set_pattern( $fmt , 'yyyy-DDD.hh:mm:ss z' );
23 $formatted = ut_datefmt_format($fmt,0);
H A Ddateformat_clone.phpt15 $fmt = ut_datefmt_create( "en-US", IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/New_…
17 $formatted = ut_datefmt_format($fmt,0);
20 $fmt_clone = clone $fmt;
21 ut_datefmt_set_pattern( $fmt , 'yyyy-DDD.hh:mm:ss z' );
23 $formatted = ut_datefmt_format($fmt,0);
H A Ddateformat_is_set_lenient.phpt20 …$fmt = ut_datefmt_create( "en-US", IntlDateFormatter::SHORT, IntlDateFormatter::SHORT , 'America/…
23 $resLenient1 = ut_datefmt_is_lenient( $fmt);
40 ut_datefmt_set_lenient( $fmt , $isLenient );
41 $resLenient = ut_datefmt_is_lenient( $fmt);
59 ut_datefmt_set_lenient( $fmt , $isLenient);
60 $resLenient = ut_datefmt_is_lenient( $fmt);
/PHP-5.6/main/
H A Dspprintf.c256 fmt++; in xbuf_format_converter()
261 if (isascii((int)*fmt) && !islower((int)*fmt)) { in xbuf_format_converter()
288 fmt++; in xbuf_format_converter()
302 fmt++; in xbuf_format_converter()
326 fmt++; in xbuf_format_converter()
330 fmt++; in xbuf_format_converter()
332 if (*fmt == '6' && *(fmt+1) == '4') { in xbuf_format_converter()
337 if (*fmt == '3' && *(fmt+1) == '2') { in xbuf_format_converter()
349 fmt++; in xbuf_format_converter()
359 fmt++; in xbuf_format_converter()
[all …]
H A Dsnprintf.c648 fmt++; in format_converter()
653 if (isascii((int)*fmt) && !islower((int)*fmt)) { in format_converter()
680 fmt++; in format_converter()
694 fmt++; in format_converter()
718 fmt++; in format_converter()
722 fmt++; in format_converter()
724 if (*fmt == '6' && *(fmt+1) == '4') { in format_converter()
729 if (*fmt == '3' && *(fmt+1) == '2') { in format_converter()
741 fmt++; in format_converter()
751 fmt++; in format_converter()
[all …]
/PHP-5.6/sapi/phpdbg/
H A Dphpdbg_utils.h55 #define phpdbg_error(fmt, ...) phpdbg_print(P_ERROR TSRMLS_CC, PHPDBG_G(io)[PHPDBG_S… argument
56 #define phpdbg_notice(fmt, ...) phpdbg_print(P_NOTICE TSRMLS_CC, PHPDBG_G(io)[PHPDBG_S… argument
57 #define phpdbg_writeln(fmt, ...) phpdbg_print(P_WRITELN TSRMLS_CC, PHPDBG_G(io)[PHPDBG_S… argument
58 #define phpdbg_write(fmt, ...) phpdbg_print(P_WRITE TSRMLS_CC, PHPDBG_G(io)[PHPDBG_S… argument
61 #define phpdbg_error_ex(out, fmt, ...) phpdbg_print(P_ERROR TSRMLS_CC, out, fmt, ##__VA_ARGS… argument
62 #define phpdbg_notice_ex(out, fmt, ...) phpdbg_print(P_NOTICE TSRMLS_CC, out, fmt, ##__VA_ARGS… argument
63 #define phpdbg_writeln_ex(out, fmt, ...) phpdbg_print(P_WRITELN TSRMLS_CC, out, fmt, ##__VA_ARGS… argument
64 #define phpdbg_write_ex(out, fmt, ...) phpdbg_print(P_WRITE TSRMLS_CC, out, fmt, ##__VA_ARGS… argument
65 #define phpdbg_log_ex(out, fmt, ...) phpdbg_print(P_LOG TSRMLS_CC, out, fmt, ##__VA_ARGS… argument
68 # define phpdbg_debug(fmt, ...) phpdbg_print(P_LOG TSRMLS_CC, PHPDBG_G(io)[PHPDBG_STDERR], fmt, #… argument
[all …]
/PHP-5.6/ext/gd/libgd/
H A Dgd_gd2.c34 #define gd2_compressed(fmt) (((fmt) == GD2_FMT_COMPRESSED) || ((fmt) == GD2_FMT_TRUECOLOR_COMPRESSE… argument
35 #define gd2_truecolor(fmt) (((fmt) == GD2_FMT_TRUECOLOR_RAW) || ((fmt) == GD2_FMT_TRUECOLOR_COMPRES… argument
121 …if ((*fmt != GD2_FMT_RAW) && (*fmt != GD2_FMT_COMPRESSED) && (*fmt != GD2_FMT_TRUECOLOR_RAW) && (* in _gd2GetHeader()
138 if (gd2_compressed(*fmt)) { in _gd2GetHeader()
191 if (gd2_truecolor(*fmt)) { in _gd2CreateFromFile()
272 int vers, fmt; in gdImageCreateFromGd2Ctx() local
442 int vers, fmt; in gdImageCreateFromGd2PartCtx() local
469 if (gd2_truecolor(fmt)) { in gdImageCreateFromGd2PartCtx()
658 gdPutWord(fmt, out); in _gd2PutHeader()
680 if ((fmt != GD2_FMT_RAW) && (fmt != GD2_FMT_COMPRESSED)) { in _gdImageGd2()
[all …]
H A Dpngtogd2.c16 int cs, fmt; in main() local
46 fmt = atoi (argv[4]); in main()
47 gdImageGd2 (im, out, cs, fmt); in main()

Completed in 64 milliseconds

1234