Lines Matching refs:pos

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()
55 PRINTF_DEBUG(("sprintf: appending '%c', pos=\n", add, *pos)); in php_sprintf_appendchar()
56 ZSTR_VAL(*buffer)[(*pos)++] = add; in php_sprintf_appendchar()
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()
70 } while ((*pos + len) >= nlen); in php_sprintf_appendchars()
73 PRINTF_DEBUG(("sprintf: appending \"%s\", pos=\n", add, *pos)); in php_sprintf_appendchars()
74 memcpy(ZSTR_VAL(*buffer) + (*pos), add, len); in php_sprintf_appendchars()
75 *pos += 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()
97 if(m_width > INT_MAX - *pos - 1) { in php_sprintf_appendstring()
101 req_size = *pos + m_width + 1; in php_sprintf_appendstring()
116 ZSTR_VAL(*buffer)[(*pos)++] = (neg) ? '-' : '+'; in php_sprintf_appendstring()
122 ZSTR_VAL(*buffer)[(*pos)++] = padding; in php_sprintf_appendstring()
126 memcpy(&ZSTR_VAL(*buffer)[*pos], add, copy_len + 1); in php_sprintf_appendstring()
127 *pos += copy_len; in php_sprintf_appendstring()
130 ZSTR_VAL(*buffer)[(*pos)++] = padding; in php_sprintf_appendstring()
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()
250 php_sprintf_appendstring(buffer, pos, "INF", 3, 0, padding, in php_sprintf_appenddouble()
314 php_sprintf_appendstring(buffer, pos, s, width, 0, padding, in php_sprintf_appenddouble()
321 php_sprintf_append2n(zend_string **buffer, size_t *pos, zend_long number, in php_sprintf_append2n() argument
331 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment, n, in php_sprintf_append2n()
344 php_sprintf_appendstring(buffer, pos, &numbuf[i], width, 0, in php_sprintf_append2n()