Lines Matching refs:out

137 	unsigned char *out;  member
146 typedef size_t (*mb_to_wchar_fn)(unsigned char **in, size_t *in_len, uint32_t *out, size_t out_len,…
147 typedef void (*mb_from_wchar_fn)(uint32_t *in, size_t in_len, mb_convert_buf *out, bool end);
159 buf->out = (unsigned char*)ZSTR_VAL(buf->str); in mb_convert_buf_init()
160 buf->limit = buf->out + initsize; in mb_convert_buf_init()
165 #define MB_CONVERT_BUF_ENSURE(buf, out, limit, needed) \ argument
166 ZEND_ASSERT(out <= limit); \
167 if ((size_t)(limit - out) < (needed)) { \
171 out = (unsigned char*)ZSTR_VAL(newstr) + (out - (unsigned char*)ZSTR_VAL((buf)->str)); \
176 #define MB_CONVERT_BUF_STORE(buf, _out, _limit) (buf)->out = _out; (buf)->limit = _limit
178 #define MB_CONVERT_BUF_LOAD(buf, _out, _limit) _out = (buf)->out; _limit = (buf)->limit
180 #define MB_CONVERT_ERROR(buf, out, limit, bad_cp, conv_fn) \ argument
181 MB_CONVERT_BUF_STORE(buf, out, limit); \
183 MB_CONVERT_BUF_LOAD(buf, out, limit)
185 static inline unsigned char* mb_convert_buf_add(unsigned char *out, char c) in mb_convert_buf_add() argument
187 *out++ = c; in mb_convert_buf_add()
188 return out; in mb_convert_buf_add()
191 static inline unsigned char* mb_convert_buf_add2(unsigned char *out, char c1, char c2) in mb_convert_buf_add2() argument
193 *out++ = c1; in mb_convert_buf_add2()
194 *out++ = c2; in mb_convert_buf_add2()
195 return out; in mb_convert_buf_add2()
198 static inline unsigned char* mb_convert_buf_add3(unsigned char *out, char c1, char c2, char c3) in mb_convert_buf_add3() argument
200 *out++ = c1; in mb_convert_buf_add3()
201 *out++ = c2; in mb_convert_buf_add3()
202 *out++ = c3; in mb_convert_buf_add3()
203 return out; in mb_convert_buf_add3()
206 static inline unsigned char* mb_convert_buf_add4(unsigned char *out, char c1, char c2, char c3, cha… in mb_convert_buf_add4() argument
208 *out++ = c1; in mb_convert_buf_add4()
209 *out++ = c2; in mb_convert_buf_add4()
210 *out++ = c3; in mb_convert_buf_add4()
211 *out++ = c4; in mb_convert_buf_add4()
212 return out; in mb_convert_buf_add4()
215 static inline unsigned char* mb_convert_buf_appends(unsigned char *out, const char *s) in mb_convert_buf_appends() argument
218 *out++ = *s++; in mb_convert_buf_appends()
220 return out; in mb_convert_buf_appends()
223 static inline unsigned char* mb_convert_buf_appendn(unsigned char *out, const char *s, size_t n) in mb_convert_buf_appendn() argument
226 *out++ = *s++; in mb_convert_buf_appendn()
228 return out; in mb_convert_buf_appendn()
233 ZEND_ASSERT(buf->out <= buf->limit); in mb_convert_buf_result_raw()
239 ZSTR_LEN(ret) = buf->out - (unsigned char*)ZSTR_VAL(ret); in mb_convert_buf_result_raw()
240 *(buf->out) = '\0'; in mb_convert_buf_result_raw()
279 return buf->out - (unsigned char*)ZSTR_VAL(buf->str); in mb_convert_buf_len()
284 buf->out = (unsigned char*)ZSTR_VAL(buf->str) + len; in mb_convert_buf_reset()
285 ZEND_ASSERT(buf->out <= buf->limit); in mb_convert_buf_reset()