Lines Matching refs:buffer
52 php_sprintf_appendchar(zend_string **buffer, size_t *pos, char add) in php_sprintf_appendchar() argument
54 if ((*pos + 1) >= ZSTR_LEN(*buffer)) { in php_sprintf_appendchar()
55 …F_DEBUG(("%s(): ereallocing buffer to %d bytes\n", get_active_function_name(), ZSTR_LEN(*buffer))); in php_sprintf_appendchar()
56 *buffer = zend_string_extend(*buffer, ZSTR_LEN(*buffer) << 1, 0); in php_sprintf_appendchar()
59 ZSTR_VAL(*buffer)[(*pos)++] = add; in php_sprintf_appendchar() local
65 php_sprintf_appendchars(zend_string **buffer, size_t *pos, char *add, size_t len) in php_sprintf_appendchars() argument
67 if ((*pos + len) >= ZSTR_LEN(*buffer)) { in php_sprintf_appendchars()
68 size_t nlen = ZSTR_LEN(*buffer); in php_sprintf_appendchars()
70 …F_DEBUG(("%s(): ereallocing buffer to %d bytes\n", get_active_function_name(), ZSTR_LEN(*buffer))); in php_sprintf_appendchars()
74 *buffer = zend_string_extend(*buffer, nlen, 0); in php_sprintf_appendchars()
77 memcpy(ZSTR_VAL(*buffer) + (*pos), add, len); in php_sprintf_appendchars()
84 php_sprintf_appendstring(zend_string **buffer, size_t *pos, char *add, in php_sprintf_appendstring() argument
97 *buffer, *pos, ZSTR_LEN(*buffer), add, min_width, padding, alignment)); in php_sprintf_appendstring()
106 if (req_size > ZSTR_LEN(*buffer)) { in php_sprintf_appendstring()
107 size_t size = ZSTR_LEN(*buffer); in php_sprintf_appendstring()
115 *buffer = zend_string_extend(*buffer, size, 0); in php_sprintf_appendstring()
119 ZSTR_VAL(*buffer)[(*pos)++] = (neg) ? '-' : '+'; in php_sprintf_appendstring() local
125 ZSTR_VAL(*buffer)[(*pos)++] = padding; in php_sprintf_appendstring() local
129 memcpy(&ZSTR_VAL(*buffer)[*pos], add, copy_len + 1); in php_sprintf_appendstring()
133 ZSTR_VAL(*buffer)[(*pos)++] = padding; in php_sprintf_appendstring() local
141 php_sprintf_appendint(zend_string **buffer, size_t *pos, zend_long number, in php_sprintf_appendint() argument
150 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment)); in php_sprintf_appendint()
177 php_sprintf_appendstring(buffer, pos, &numbuf[i], width, 0, in php_sprintf_appendint()
185 php_sprintf_appenduint(zend_string **buffer, size_t *pos, in php_sprintf_appenduint() argument
194 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment)); in php_sprintf_appenduint()
210 php_sprintf_appendstring(buffer, pos, &numbuf[i], width, 0, in php_sprintf_appenduint()
217 php_sprintf_appenddouble(zend_string **buffer, size_t *pos, in php_sprintf_appenddouble() argument
236 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment, fmt)); in php_sprintf_appenddouble()
246 php_sprintf_appendstring(buffer, pos, "NaN", 3, 0, padding, in php_sprintf_appenddouble()
253 php_sprintf_appendstring(buffer, pos, "INF", 3, 0, padding, in php_sprintf_appenddouble()
317 php_sprintf_appendstring(buffer, pos, s, width, 0, padding, in php_sprintf_appenddouble()
324 php_sprintf_append2n(zend_string **buffer, size_t *pos, zend_long number, in php_sprintf_append2n() argument
334 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment, n, in php_sprintf_append2n()
347 php_sprintf_appendstring(buffer, pos, &numbuf[i], width, 0, in php_sprintf_append2n()
355 php_sprintf_getnumber(char **buffer, size_t *len) in php_sprintf_getnumber() argument
358 zend_long num = ZEND_STRTOL(*buffer, &endptr, 10); in php_sprintf_getnumber()
362 i = (endptr - *buffer); in php_sprintf_getnumber()
364 *buffer = endptr; in php_sprintf_getnumber()