/PHP-7.1/ext/intl/doc/ |
H A D | datefmt_api.php | 273 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 386 function datefmt_get_calendar($fmt) {} argument 394 function datefmt_get_pattern($fmt) {} argument 415 function datefmt_get_error_code($fmt) {} argument [all …]
|
H A D | msgfmt_api.php | 125 * @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-7.1/ext/intl/tests/ |
H A D | ut_common.inc | 199 return $GLOBALS['oo-mode'] ? $fmt->getPattern() : numfmt_get_pattern( $fmt ); 207 return $GLOBALS['oo-mode'] ? $fmt->getErrorCode() : numfmt_get_error_code( $fmt ); 305 return $GLOBALS['oo-mode'] ? $fmt->format( $args ) : msgfmt_format( $fmt, $args); 309 return $GLOBALS['oo-mode'] ? $fmt->parse( $string) : msgfmt_parse( $fmt, $string); 325 return $GLOBALS['oo-mode'] ? $fmt->getPattern() : msgfmt_get_pattern( $fmt ); 329 return $GLOBALS['oo-mode'] ? $fmt->getLocale( ) : msgfmt_get_locale( $fmt ); 346 return $GLOBALS['oo-mode'] ? $fmt->getDateType( ) : datefmt_get_datetype( $fmt ); 350 return $GLOBALS['oo-mode'] ? $fmt->getTimeType( ) : datefmt_get_timetype( $fmt ); 354 return $GLOBALS['oo-mode'] ? $fmt->getCalendar( ) : datefmt_get_calendar( $fmt ); 370 return $GLOBALS['oo-mode'] ? $fmt->getPattern() : datefmt_get_pattern( $fmt ); [all …]
|
H A D | formatter_get_set_pattern.phpt | 18 $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 …]
|
H A D | formatter_get_set_pattern2.phpt | 18 $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 …]
|
H A D | msgfmt_get_set_pattern.phpt | 16 $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 D | formatter_clone.phpt | 14 $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 D | msgfmt_fail.phpt | 10 if(!$fmt) { 52 $fmt = null; 54 err($fmt); 56 err($fmt); 58 err($fmt); 65 err($fmt); 67 err($fmt); 69 err($fmt); 73 err($fmt); 75 err($fmt); [all …]
|
H A D | msgfmt_fail2.phpt | 10 if(!$fmt) { 52 $fmt = null; 54 err($fmt); 56 err($fmt); 58 err($fmt); 65 err($fmt); 67 err($fmt); 69 err($fmt); 73 err($fmt); 75 err($fmt); [all …]
|
H A D | bug53735.phpt | 9 $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 D | formatter_parse.phpt | 18 $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 D | formatter_fail.phpt | 8 function err($fmt) { 9 if(!$fmt) { 47 $fmt = new NumberFormatter(); 50 $fmt = null; 52 err($fmt); 53 $fmt = numfmt_create(); 54 err($fmt); 56 err($fmt); 60 err($fmt); 62 err($fmt); [all …]
|
H A D | formatter_get_set_text_attribute.phpt | 32 $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 D | formatter_get_set_text_attribute_var2.phpt | 32 $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 D | msgfmt_clone.phpt | 13 $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 D | formatter_get_error.phpt | 15 $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 D | formatter_parse_currency.phpt | 16 $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 D | bug14562.phpt | 12 $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 D | dateformat_clone.phpt | 15 $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 D | dateformat_clone2.phpt | 15 $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);
|
/PHP-7.1/sapi/phpdbg/ |
H A D | phpdbg_out.h | 47 …ine phpdbg_script(type, fmt, ...) phpdbg_print(type , PHPDBG_G(io)[PHPDB… argument 48 #define phpdbg_log(fmt, ...) phpdbg_log_internal(PHPDBG_G(io)[PHPDBG_STDOUT].fd, fmt, ##__VA_ARGS__) argument 49 #define phpdbg_xml(fmt, ...) phpdbg_xml_internal(PHPDBG_G(io)[PHPDBG_STDOUT].fd, fmt, ##__VA_ARGS__) argument 50 #define phpdbg_out(fmt, ...) phpdbg_out_internal(PHPDBG_G(io)[PHPDBG_STDOUT].fd, fmt, ##__VA_ARGS__) argument 56 #define phpdbg_script_ex(out, type, fmt, ...) phpdbg_print(type , out, NULL, NULL… argument 57 #define phpdbg_log_ex(out, fmt, ...) phpdbg_log_internal(out, fmt, ##__VA_ARGS__) argument 58 #define phpdbg_xml_ex(out, fmt, ...) phpdbg_xml_internal(out, fmt, ##__VA_ARGS__) argument 59 #define phpdbg_out_ex(out, fmt, ...) phpdbg_out_internal(out, fmt, ##__VA_ARGS__) argument 61 #define phpdbg_rlog(fd, fmt, ...) phpdbg_rlog_internal(fd, fmt, ##__VA_ARGS__) argument 71 # define phpdbg_debug(fmt, ...) phpdbg_log_ex(PHPDBG_G(io)[PHPDBG_STDERR].fd, fmt, ##__VA_ARGS__) argument [all …]
|
H A D | phpdbg_out.c | 189 fmt++; in format_converter() 194 if (isascii((int)*fmt) && !islower((int)*fmt)) { in format_converter() 221 fmt++; in format_converter() 235 fmt++; in format_converter() 259 fmt++; in format_converter() 263 fmt++; in format_converter() 265 if (*fmt == '6' && *(fmt+1) == '4') { in format_converter() 270 if (*fmt == '3' && *(fmt+1) == '2') { in format_converter() 282 fmt++; in format_converter() 292 fmt++; in format_converter() [all …]
|
/PHP-7.1/main/ |
H A D | spprintf.c | 253 fmt++; in xbuf_format_converter() 258 if (isascii((int)*fmt) && !islower((int)*fmt)) { in xbuf_format_converter() 285 fmt++; in xbuf_format_converter() 299 fmt++; in xbuf_format_converter() 323 fmt++; in xbuf_format_converter() 327 fmt++; in xbuf_format_converter() 329 if (*fmt == '6' && *(fmt+1) == '4') { in xbuf_format_converter() 334 if (*fmt == '3' && *(fmt+1) == '2') { in xbuf_format_converter() 346 fmt++; in xbuf_format_converter() 356 fmt++; in xbuf_format_converter() [all …]
|
H A D | snprintf.c | 653 fmt++; in format_converter() 658 if (isascii((int)*fmt) && !islower((int)*fmt)) { in format_converter() 685 fmt++; in format_converter() 699 fmt++; in format_converter() 723 fmt++; in format_converter() 727 fmt++; in format_converter() 729 if (*fmt == '6' && *(fmt+1) == '4') { in format_converter() 734 if (*fmt == '3' && *(fmt+1) == '2') { in format_converter() 746 fmt++; in format_converter() 756 fmt++; in format_converter() [all …]
|
/PHP-7.1/ext/gd/libgd/ |
H A D | gd_gd2.c | 34 #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 …]
|