Lines Matching refs:pos
60 php_sprintf_appendchar(zend_string **buffer, size_t *pos, char add) in php_sprintf_appendchar() argument
62 if (!*buffer || (*pos + 1) >= ZSTR_LEN(*buffer)) { in php_sprintf_appendchar()
66 PRINTF_DEBUG(("sprintf: appending '%c', pos=\n", add, *pos)); in php_sprintf_appendchar()
67 ZSTR_VAL(*buffer)[(*pos)++] = add; in php_sprintf_appendchar()
73 php_sprintf_appendstring(zend_string **buffer, size_t *pos, char *add, in php_sprintf_appendstring() argument
86 *buffer, *pos, ZSTR_LEN(*buffer), add, min_width, padding, alignment)); in php_sprintf_appendstring()
89 if(m_width > INT_MAX - *pos - 1) { in php_sprintf_appendstring()
93 req_size = *pos + m_width + 1; in php_sprintf_appendstring()
108 ZSTR_VAL(*buffer)[(*pos)++] = (neg) ? '-' : '+'; in php_sprintf_appendstring()
114 ZSTR_VAL(*buffer)[(*pos)++] = padding; in php_sprintf_appendstring()
118 memcpy(&ZSTR_VAL(*buffer)[*pos], add, copy_len + 1); in php_sprintf_appendstring()
119 *pos += copy_len; in php_sprintf_appendstring()
122 ZSTR_VAL(*buffer)[(*pos)++] = padding; in php_sprintf_appendstring()
130 php_sprintf_appendint(zend_string **buffer, size_t *pos, zend_long number, in php_sprintf_appendint() argument
139 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment)); in php_sprintf_appendint()
166 php_sprintf_appendstring(buffer, pos, &numbuf[i], width, 0, in php_sprintf_appendint()
174 php_sprintf_appenduint(zend_string **buffer, size_t *pos, in php_sprintf_appenduint() argument
183 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment)); in php_sprintf_appenduint()
199 php_sprintf_appendstring(buffer, pos, &numbuf[i], width, 0, in php_sprintf_appenduint()
206 php_sprintf_appenddouble(zend_string **buffer, size_t *pos, in php_sprintf_appenddouble() argument
227 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment, fmt)); in php_sprintf_appenddouble()
237 php_sprintf_appendstring(buffer, pos, "NaN", 3, 0, padding, in php_sprintf_appenddouble()
244 php_sprintf_appendstring(buffer, pos, "INF", 3, 0, padding, in php_sprintf_appenddouble()
303 php_sprintf_appendstring(buffer, pos, s, width, 0, padding, in php_sprintf_appenddouble()
310 php_sprintf_append2n(zend_string **buffer, size_t *pos, zend_long number, in php_sprintf_append2n() argument
320 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment, n, in php_sprintf_append2n()
333 php_sprintf_appendstring(buffer, pos, &numbuf[i], width, 0, in php_sprintf_append2n()
341 php_sprintf_getnumber(char *buffer, size_t *pos) in php_sprintf_getnumber() argument
344 register zend_long num = ZEND_STRTOL(&buffer[*pos], &endptr, 10); in php_sprintf_getnumber()
348 i = (endptr - &buffer[*pos]); in php_sprintf_getnumber()
351 *pos += i; in php_sprintf_getnumber()