Lines Matching refs:pos
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()
58 PRINTF_DEBUG(("sprintf: appending '%c', pos=\n", add, *pos)); in php_sprintf_appendchar()
59 ZSTR_VAL(*buffer)[(*pos)++] = add; in php_sprintf_appendchar()
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()
73 } while ((*pos + len) >= nlen); in php_sprintf_appendchars()
76 PRINTF_DEBUG(("sprintf: appending \"%s\", pos=\n", add, *pos)); in php_sprintf_appendchars()
77 memcpy(ZSTR_VAL(*buffer) + (*pos), add, len); in php_sprintf_appendchars()
78 *pos += 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()
100 if(m_width > INT_MAX - *pos - 1) { in php_sprintf_appendstring()
104 req_size = *pos + m_width + 1; in php_sprintf_appendstring()
119 ZSTR_VAL(*buffer)[(*pos)++] = (neg) ? '-' : '+'; in php_sprintf_appendstring()
125 ZSTR_VAL(*buffer)[(*pos)++] = padding; in php_sprintf_appendstring()
129 memcpy(&ZSTR_VAL(*buffer)[*pos], add, copy_len + 1); in php_sprintf_appendstring()
130 *pos += copy_len; in php_sprintf_appendstring()
133 ZSTR_VAL(*buffer)[(*pos)++] = padding; in php_sprintf_appendstring()
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()