Lines Matching refs:buffer
49 php_sprintf_appendchar(zend_string **buffer, size_t *pos, char add) in php_sprintf_appendchar() argument
51 if ((*pos + 1) >= ZSTR_LEN(*buffer)) { in php_sprintf_appendchar()
52 …F_DEBUG(("%s(): ereallocing buffer to %d bytes\n", get_active_function_name(), ZSTR_LEN(*buffer))); in php_sprintf_appendchar()
53 *buffer = zend_string_extend(*buffer, ZSTR_LEN(*buffer) << 1, 0); in php_sprintf_appendchar()
56 ZSTR_VAL(*buffer)[(*pos)++] = add; in php_sprintf_appendchar() local
62 php_sprintf_appendchars(zend_string **buffer, size_t *pos, char *add, size_t len) in php_sprintf_appendchars() argument
64 if ((*pos + len) >= ZSTR_LEN(*buffer)) { in php_sprintf_appendchars()
65 size_t nlen = ZSTR_LEN(*buffer); in php_sprintf_appendchars()
67 …F_DEBUG(("%s(): ereallocing buffer to %d bytes\n", get_active_function_name(), ZSTR_LEN(*buffer))); in php_sprintf_appendchars()
71 *buffer = zend_string_extend(*buffer, nlen, 0); in php_sprintf_appendchars()
74 memcpy(ZSTR_VAL(*buffer) + (*pos), add, len); in php_sprintf_appendchars()
81 php_sprintf_appendstring(zend_string **buffer, size_t *pos, char *add, in php_sprintf_appendstring() argument
94 *buffer, *pos, ZSTR_LEN(*buffer), add, min_width, padding, alignment)); in php_sprintf_appendstring()
103 if (req_size > ZSTR_LEN(*buffer)) { in php_sprintf_appendstring()
104 size_t size = ZSTR_LEN(*buffer); in php_sprintf_appendstring()
112 *buffer = zend_string_extend(*buffer, size, 0); in php_sprintf_appendstring()
116 ZSTR_VAL(*buffer)[(*pos)++] = (neg) ? '-' : '+'; in php_sprintf_appendstring() local
122 ZSTR_VAL(*buffer)[(*pos)++] = padding; in php_sprintf_appendstring() local
126 memcpy(&ZSTR_VAL(*buffer)[*pos], add, copy_len + 1); in php_sprintf_appendstring()
130 ZSTR_VAL(*buffer)[(*pos)++] = padding; in php_sprintf_appendstring() local
138 php_sprintf_appendint(zend_string **buffer, size_t *pos, zend_long number, in php_sprintf_appendint() argument
147 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment)); in php_sprintf_appendint()
174 php_sprintf_appendstring(buffer, pos, &numbuf[i], width, 0, in php_sprintf_appendint()
182 php_sprintf_appenduint(zend_string **buffer, size_t *pos, in php_sprintf_appenduint() argument
191 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment)); in php_sprintf_appenduint()
207 php_sprintf_appendstring(buffer, pos, &numbuf[i], width, 0, in php_sprintf_appenduint()
214 php_sprintf_appenddouble(zend_string **buffer, size_t *pos, in php_sprintf_appenddouble() argument
233 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment, fmt)); in php_sprintf_appenddouble()
243 php_sprintf_appendstring(buffer, pos, "NaN", 3, 0, padding, in php_sprintf_appenddouble()
251 php_sprintf_appendstring(buffer, pos, str, strlen(str), 0, padding, in php_sprintf_appenddouble()
315 php_sprintf_appendstring(buffer, pos, s, width, 0, padding, in php_sprintf_appenddouble()
322 php_sprintf_append2n(zend_string **buffer, size_t *pos, zend_long number, in php_sprintf_append2n() argument
332 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment, n, in php_sprintf_append2n()
345 php_sprintf_appendstring(buffer, pos, &numbuf[i], width, 0, in php_sprintf_append2n()
353 php_sprintf_getnumber(char **buffer, size_t *len) in php_sprintf_getnumber() argument
356 zend_long num = ZEND_STRTOL(*buffer, &endptr, 10); in php_sprintf_getnumber()
360 i = (endptr - *buffer); in php_sprintf_getnumber()
362 *buffer = endptr; in php_sprintf_getnumber()