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

12

/PHP_5_3/TSRM/
H A DTSRM.c58 int tsrm_error(int level, const char *format, ...);
738 int tsrm_error(int level, const char *format, ...) argument
745 va_start(args, format);
746 size = vfprintf(tsrm_error_file, format, args);
/PHP_5_3/ext/fileinfo/libmagic/
H A Dapprentice.c153 const int format; member in struct:type_tbl_s
235 file_formats[p->type] = p->format;
1686 /* Missing format string; bad */
1806 * Check that the optional printf format in description matches
1818 /* No format string; ok */
1826 "m->type and format strings");
1830 file_magwarn(ms, "No format string for `%s' with description "
1838 * TODO: this error message is unhelpful if the format
1841 file_magwarn(ms, "Printf format `%c' is not valid for type "
1850 "Too many format string
[all...]
/PHP_5_3/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_3/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 occured. 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 occured. 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_3/ext/dom/
H A Ddocument.c1747 int file_len = 0, bytes, format, saveempty = 0; local
1767 format = doc_props->formatoutput;
1772 bytes = xmlSaveFormatFileEnc(file, docp, NULL, format);
1796 int size, format, saveempty = 0; local
1806 format = doc_props->formatoutput;
1824 xmlNodeDump(buf, docp, node, 0, format);
1841 xmlDocDumpFormatMemory(docp, &mem, &size, format);
2251 int file_len, bytes, format; local
2272 format = doc_props->formatoutput;
2273 bytes = htmlSaveFileFormat(file, docp, encoding, format);
2293 int size, format; local
[all...]
/PHP_5_3/ext/interbase/
H A Dibase_query.c588 _php_ibase_module_error("Invalid date/time format (expected 3 or 6 fields, got %d."
589 " Use format 'm/d/Y H:i:s'. You gave '%s')" TSRMLS_CC, n, Z_STRVAL_P(val));
605 _php_ibase_module_error("Invalid date format (expected 3 fields, got %d. "
606 "Use format 'm/d/Y' You gave '%s')" TSRMLS_CC, n, Z_STRVAL_P(val));
622 _php_ibase_module_error("Invalid time format (expected 3 fields, got %d. "
623 "Use format 'H:i:s'. You gave '%s')" TSRMLS_CC, n, Z_STRVAL_P(val));
702 char *format = INI_STR("ibase.timestampformat"); local
708 format = INI_STR("ibase.dateformat");
711 format = INI_STR("ibase.timeformat");
713 if (!strptime(Z_STRVAL_P(b_var), format,
1321 char *format; local
[all...]
/PHP_5_3/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_3/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_3/ext/sqlite3/
H A Dsqlite3.c47 static void php_sqlite3_error(php_sqlite3_db_object *db_obj, char *format, ...) argument
53 va_start(arg, format);
54 vspprintf(&message, 0, format, arg);
/PHP_5_3/ext/standard/
H A Ddatetime.c53 Return date string in standard format for http headers */
90 char *strptime(const char *s, const char *format, struct tm *tm);
93 /* {{{ proto string strptime(string timestamp, string format)
99 char *format; local
104 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &ts, &ts_length, &format, &format_length) == FAILURE) {
110 unparsed_part = strptime(ts, format, &parsed_time);
H A Dpack.c62 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Type %c: integer overflow in format string", code); \
105 /* {{{ proto string pack(string format, mixed arg1 [, mixed arg2 [, mixed ...]])
106 Takes one or more arguments and packs them into a binary string according to the format argument */
112 char *format; local
129 format = Z_STRVAL_PP(argv[0]);
132 /* We have a maximum of <formatlen> format codes to deal with */
137 /* Preprocess format into formatcodes and formatargs */
139 char code = format[i++];
142 /* Handle format arguments if any */
144 char c = format[
521 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 Durl.c693 /* {{{ proto array get_headers(string url[, int format])
704 long format = 0; local
706 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &url, &url_len, &format) == FAILURE) {
740 if (!format) {
H A Dformatted_print.c380 char *format, *result, padding; local
420 format = Z_STRVAL_PP(args[format_offset]);
430 PRINTF_DEBUG(("sprintf: format[%d]='%c'\n", inpos, format[inpos]));
432 if (format[inpos] != '%') {
433 php_sprintf_appendchar(&result, &outpos, &size, format[inpos++] TSRMLS_CC);
434 } else if (format[inpos + 1] == '%') {
438 /* starting a new format specifier, reset variables */
446 format[inpos], inpos));
447 if (isascii((int)format[inpo
[all...]
/PHP_5_3/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_3/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);
H A Dzend_exceptions.c550 int zend_spprintf(char **message, int max_len, char *format, ...) /* {{{ */ argument
555 va_start(arg, format);
556 len = zend_vspprintf(message, max_len, format, arg);
749 ZEND_API zval * zend_throw_exception_ex(zend_class_entry *exception_ce, long code TSRMLS_DC, char *format, ...) /* {{{ */ argument
755 va_start(arg, format);
756 zend_vspprintf(&message, 0, format, arg);
772 static void zend_error_va(int type, const char *file, uint lineno, const char *format, ...) /* {{{ */ argument
776 va_start(args, format);
777 zend_error_cb(type, file, lineno, format, args);
H A Dzend.c51 ZEND_API int (*zend_printf)(const char *format, ...);
58 ZEND_API void (*zend_error_cb)(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args);
59 int (*zend_vspprintf)(char **pbuf, size_t max_len, const char *format, va_list ap);
978 ZEND_API void zend_error(int type, const char *format, ...) /* {{{ */ argument
1063 va_start(args, format);
1069 zend_error_cb(type, error_filename, error_lineno, format, args);
1078 zend_error_cb(type, error_filename, error_lineno, format, args);
1100 Z_STRLEN_P(z_error_message) = zend_vspprintf(&Z_STRVAL_P(z_error_message), 0, format, usr_copy);
1161 zend_error_cb(type, error_filename, error_lineno, format, args);
1167 zend_error_cb(type, error_filename, error_lineno, format, arg
1211 zend_output_debug_string(zend_bool trigger_break, const char *format, ...) argument
[all...]
/PHP_5_3/ext/mysqlnd/
H A Dmysqlnd_debug.h35 unsigned int level, const char * type, const char *format, ...);
165 static inline void DBG_INF_FMT(const char * const format, ...) {} argument
166 static inline void DBG_ERR_FMT(const char * const format, ...) {} argument
/PHP_5_3/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...]

Completed in 70 milliseconds

12