Searched defs:format (Results 1 - 25 of 45) sorted by relevance

12

/PHP_5_6/ext/gd/libgd/
H A Dgdkanji.c59 debug (const char *format,...) argument
64 va_start (args, format);
66 vfprintf (stdout, format, args);
73 error (const char *format,...) argument
79 va_start(args, format);
80 vspprintf(&tmp, 0, format, args);
H A Dxbm.c159 void gdCtxPrintf(gdIOCtx * out, const char *format, ...) argument
165 va_start(args, format);
166 len = vspprintf(&buf, 0, format, args);
/PHP_5_6/TSRM/
H A DTSRM.c58 int tsrm_error(int level, const char *format, ...);
754 int tsrm_error(int level, const char *format, ...) argument
761 va_start(args, format);
762 size = vfprintf(tsrm_error_file, format, args);
/PHP_5_6/sapi/fpm/fpm/
H A Dfpm_log.c107 char format[129]; local
160 memset(format, '\0', sizeof(format)); /* reset format */
177 if (format[0] == '\0' || !strcasecmp(format, "total")) {
181 } else if (!strcasecmp(format, "user")) {
185 } else if (!strcasecmp(format, "system")) {
190 zlog(ZLOG_WARNING, "only 'total', 'user' or 'system' are allowed as a modifier for %%%c ('%s')", *s, format);
194 format[
[all...]
/PHP_5_6/ext/intl/dateformat/
H A Ddateformat_format_object.cpp64 **format = NULL; local
77 &object, &format, &locale_str, &locale_len) == FAILURE) {
85 if (format == NULL || Z_TYPE_PP(format) == IS_NULL) {
87 } else if (Z_TYPE_PP(format) == IS_ARRAY) {
88 HashTable *ht = Z_ARRVAL_PP(format);
93 "datefmt_format_object: bad format; if array, it must have "
102 "datefmt_format_object: bad format; the date format (first "
112 "datefmt_format_object: bad format; th
[all...]
/PHP_5_6/ext/intl/doc/
H A Ddatefmt_api.php7 * display dates in a localized format or to parse strings
13 * echo $formatter->format(time());
18 * echo $formatter->format(time());
86 * @param mixed $value - value to format
91 public function format($value) {} function
210 * @return string the pattern string being used to format/parse
218 * @return boolean 'true' if successful, 'false' if an error occurred. Bad format
268 * @param mixed $value - value to format
404 * @return string the pattern string being used to format/parse
413 * @return boolean 'true' if successful, 'false' if an error occurred. Bad format
[all...]
H A Dformatter_api.php7 * number according to the localized format or given pattern or set of rules, and to
14 * echo $formatter->format($value);
143 * format or parse numbers.
156 * format or parse numbers.
175 * chosen. It is possible to format 64-bit number on 32-bit machine by passing it as double and using
179 * @param integer|double $number Number to format
183 public function format($number, $type = 0) {} function
203 * @param double $number Number to format
204 * @param string $currency 3-letter currency code (ISO 4217) to use in format
211 * This parser would use parseCurrency API string to parse currency string. The format i
[all...]
H A Dmsgfmt_api.php36 public function format($args) {} function
/PHP_5_6/Zend/
H A Dzend_sprintf.c31 int zend_sprintf(char *buffer, const char *format, ...) argument
35 va_start(args, format);
36 vsprintf(buffer, format, args);
/PHP_5_6/ext/mysqli/
H A Dmysqli_exception.c39 void php_mysqli_throw_sql_exception(char *sqlstate, int errorno TSRMLS_DC, char *format, ...) argument
45 va_start(arg, format);
46 vspprintf(&message, 0, format, arg);
/PHP_5_6/ext/mysqlnd/
H A Dmysqlnd_alloc.c615 PHPAPI int _mysqlnd_sprintf(char ** pbuf, size_t max_len, const char *format, ...) argument
619 va_start(ap, format);
620 len = vspprintf(pbuf, max_len, format, ap);
635 PHPAPI int _mysqlnd_vsprintf(char ** pbuf, size_t max_len, const char * format, va_list ap) argument
637 return vspprintf(pbuf, max_len, format, ap);
H A Dmysqlnd_debug.h36 unsigned int level, const char * type, const char *format, ...);
206 static inline void DBG_INF_FMT(const char * const format, ...) {} argument
207 static inline void DBG_ERR_FMT(const char * const format, ...) {} argument
217 static inline void TRACE_ALLOC_INF_FMT(const char * const format, ...) {} argument
218 static inline void TRACE_ALLOC_ERR_FMT(const char * const format, ...) {} argument
/PHP_5_6/ext/opcache/
H A Dzend_accelerator_debug.c31 void zend_accel_error(int type, const char *format, ...) argument
83 va_start(args, format);
84 vfprintf(fLog, format, args);
/PHP_5_6/ext/pdo_mysql/
H A Dphp_pdo_mysql_int.h55 static inline void PDO_DBG_INF_FMT(char *format, ...) {} argument
56 static inline void PDO_DBG_ERR_FMT(char *format, ...) {} argument
/PHP_5_6/ext/standard/
H A Ddatetime.c53 Return date string in standard format for http headers */
81 char *strptime(const char *s, const char *format, struct tm *tm);
84 /* {{{ proto string strptime(string timestamp, string format)
90 char *format; local
95 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &ts, &ts_length, &format, &format_length) == FAILURE) {
101 unparsed_part = strptime(ts, format, &parsed_time);
H A Dpack.c61 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Type %c: integer overflow in format string", code); \
104 /* {{{ proto string pack(string format, mixed arg1 [, mixed arg2 [, mixed ...]])
105 Takes one or more arguments and packs them into a binary string according to the format argument */
111 char *format; local
128 format = Z_STRVAL_PP(argv[0]);
131 /* We have a maximum of <formatlen> format codes to deal with */
136 /* Preprocess format into formatcodes and formatargs */
138 char code = format[i++];
141 /* Handle format arguments if any */
143 char c = format[
531 char *format, *input, *formatarg, *inputarg; local
[all...]
H A Dscanf.c118 static char *BuildCharSet(CharSet *cset, char *format);
129 * This function examines a character set format specification
134 * Returns the next format position.
141 static char * BuildCharSet(CharSet *cset, char *format) argument
149 ch = format;
152 ch = ++format;
154 end = format + 1; /* verify this - cc */
170 cset->chars = (char *) safe_emalloc(sizeof(char), (end - format - 1), 0);
181 ch = format++;
185 ch = format
311 ValidateFormat(char *format, int numVars, int *totalSubs) argument
579 php_sscanf_internal( char *string, char *format, int argCount, zval ***args, int varStart, zval **return_value TSRMLS_DC) argument
[all...]
H A Dformatted_print.c377 char *format, *result, padding; local
417 format = Z_STRVAL_PP(args[format_offset]);
427 PRINTF_DEBUG(("sprintf: format[%d]='%c'\n", inpos, format[inpos]));
429 if (format[inpos] != '%') {
430 php_sprintf_appendchar(&result, &outpos, &size, format[inpos++] TSRMLS_CC);
431 } else if (format[inpos + 1] == '%') {
435 /* starting a new format specifier, reset variables */
443 format[inpos], inpos));
444 if (isascii((int)format[inpo
[all...]
H A Durl.c697 /* {{{ proto array get_headers(string url[, int format])
708 long format = 0; local
710 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &url, &url_len, &format) == FAILURE) {
744 if (!format) {
/PHP_5_6/main/
H A Dphp_sprintf.c31 php_sprintf (char*s, const char* format, ...) argument
36 va_start (args, format);
38 ret = vsprintf (s, format, args);
H A Dsnprintf.c159 /* exponential format (e.g. 1.2345e+13) */
196 /* standard format 0. */
208 /* standard format */
302 * Convert num to its decimal format.
372 PHPAPI char * php_conv_fp(register char format, register double num, argument
383 if (format == 'F') {
385 } else { /* either e or E format */
399 if (format == 'F') {
439 if (format != 'F') {
444 *s++ = format; /* eithe
477 ap_php_conv_p2(register u_wide_int num, register int nbits, char format, char *buf_end, register int *len) argument
1192 strx_printv(int *ccp, char *buf, size_t len, const char *format, va_list ap) argument
1223 ap_php_slprintf(char *buf, size_t len, const char *format,...) argument
1239 ap_php_vslprintf(char *buf, size_t len, const char *format, va_list ap) argument
1252 ap_php_snprintf(char *buf, size_t len, const char *format,...) argument
1264 ap_php_vsnprintf(char *buf, size_t len, const char *format, va_list ap) argument
1273 ap_php_vasprintf(char **buf, const char *format, va_list ap) argument
1297 ap_php_asprintf(char **buf, const char *format, ...) argument
[all...]
H A Dspprintf.c196 * Do format conversion placing the output in buffer
734 * The last character of the format string was %.
795 PHPAPI int vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap) /* {{{ */ argument
799 xbuf_format_converter(&xbuf, format, ap);
812 PHPAPI int spprintf(char **pbuf, size_t max_len, const char *format, ...) /* {{{ */ argument
817 va_start(ap, format);
818 cc = vspprintf(pbuf, max_len, format, ap);
/PHP_5_6/ext/intl/converter/
H A Dconverter.c45 static inline void php_converter_throw_failure(php_converter_object *objval, UErrorCode error TSRMLS_DC, const char *format, ...) { argument
50 va_start(vargs, format);
51 vsnprintf(message, sizeof(message), format, vargs);
/PHP_5_6/sapi/phpdbg/tests/
H A Drun-tests.php321 private static $format = array( variable
407 self::$format['search'],
408 self::$format['replace'], preg_quote($line));
/PHP_5_6/sapi/phpdbg/
H A Dphpdbg_utils.c227 PHPDBG_API int phpdbg_print(int type TSRMLS_DC, FILE *fp, const char *format, ...) /* {{{ */ argument
233 if (format != NULL && strlen(format) > 0L) {
234 va_start(args, format);
235 vspprintf(&buffer, 0, format, args);
305 char *format = NULL, *buffer = NULL; local
312 &format, "[%s]: %s\n", buffer, fmt);
314 fp, format, args);
316 free(format);

Completed in 75 milliseconds

12