Lines Matching refs:buffer
54 php_sprintf_appendchar(zend_string **buffer, size_t *pos, char add) in php_sprintf_appendchar() argument
56 if ((*pos + 1) >= ZSTR_LEN(*buffer)) { in php_sprintf_appendchar()
57 …F_DEBUG(("%s(): ereallocing buffer to %d bytes\n", get_active_function_name(), ZSTR_LEN(*buffer))); in php_sprintf_appendchar()
58 *buffer = zend_string_extend(*buffer, ZSTR_LEN(*buffer) << 1, 0); in php_sprintf_appendchar()
61 ZSTR_VAL(*buffer)[(*pos)++] = add; in php_sprintf_appendchar() local
67 php_sprintf_appendchars(zend_string **buffer, size_t *pos, char *add, size_t len) in php_sprintf_appendchars() argument
69 if ((*pos + len) >= ZSTR_LEN(*buffer)) { in php_sprintf_appendchars()
70 size_t nlen = ZSTR_LEN(*buffer); in php_sprintf_appendchars()
72 …F_DEBUG(("%s(): ereallocing buffer to %d bytes\n", get_active_function_name(), ZSTR_LEN(*buffer))); in php_sprintf_appendchars()
76 *buffer = zend_string_extend(*buffer, nlen, 0); in php_sprintf_appendchars()
79 memcpy(ZSTR_VAL(*buffer) + (*pos), add, len); in php_sprintf_appendchars()
86 php_sprintf_appendstring(zend_string **buffer, size_t *pos, char *add, in php_sprintf_appendstring() argument
99 *buffer, *pos, ZSTR_LEN(*buffer), add, min_width, padding, alignment)); in php_sprintf_appendstring()
108 if (req_size > ZSTR_LEN(*buffer)) { in php_sprintf_appendstring()
109 size_t size = ZSTR_LEN(*buffer); in php_sprintf_appendstring()
117 *buffer = zend_string_extend(*buffer, size, 0); in php_sprintf_appendstring()
121 ZSTR_VAL(*buffer)[(*pos)++] = (neg) ? '-' : '+'; in php_sprintf_appendstring() local
127 ZSTR_VAL(*buffer)[(*pos)++] = padding; in php_sprintf_appendstring() local
131 memcpy(&ZSTR_VAL(*buffer)[*pos], add, copy_len + 1); in php_sprintf_appendstring()
135 ZSTR_VAL(*buffer)[(*pos)++] = padding; in php_sprintf_appendstring() local
143 php_sprintf_appendint(zend_string **buffer, size_t *pos, zend_long number, in php_sprintf_appendint() argument
152 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment)); in php_sprintf_appendint()
179 php_sprintf_appendstring(buffer, pos, &numbuf[i], width, 0, in php_sprintf_appendint()
187 php_sprintf_appenduint(zend_string **buffer, size_t *pos, in php_sprintf_appenduint() argument
196 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment)); in php_sprintf_appenduint()
212 php_sprintf_appendstring(buffer, pos, &numbuf[i], width, 0, in php_sprintf_appenduint()
219 php_sprintf_appenddouble(zend_string **buffer, size_t *pos, in php_sprintf_appenddouble() argument
238 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment, fmt)); in php_sprintf_appenddouble()
248 php_sprintf_appendstring(buffer, pos, "NaN", 3, 0, padding, in php_sprintf_appenddouble()
255 php_sprintf_appendstring(buffer, pos, "INF", 3, 0, padding, in php_sprintf_appenddouble()
310 php_sprintf_appendstring(buffer, pos, s, width, 0, padding, in php_sprintf_appenddouble()
317 php_sprintf_append2n(zend_string **buffer, size_t *pos, zend_long number, in php_sprintf_append2n() argument
327 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment, n, in php_sprintf_append2n()
340 php_sprintf_appendstring(buffer, pos, &numbuf[i], width, 0, in php_sprintf_append2n()
348 php_sprintf_getnumber(char **buffer, size_t *len) in php_sprintf_getnumber() argument
351 register zend_long num = ZEND_STRTOL(*buffer, &endptr, 10); in php_sprintf_getnumber()
355 i = (endptr - *buffer); in php_sprintf_getnumber()
357 *buffer = endptr; in php_sprintf_getnumber()