Lines Matching refs:out

135 	unsigned char *out;  member
144 typedef size_t (*mb_to_wchar_fn)(unsigned char **in, size_t *in_len, uint32_t *out, size_t out_len,…
145 typedef void (*mb_from_wchar_fn)(uint32_t *in, size_t in_len, mb_convert_buf *out, bool end);
156 buf->out = (unsigned char*)ZSTR_VAL(buf->str); in mb_convert_buf_init()
157 buf->limit = buf->out + initsize; in mb_convert_buf_init()
162 #define MB_CONVERT_BUF_ENSURE(buf, out, limit, needed) \ argument
163 ZEND_ASSERT(out <= limit); \
164 if ((limit - out) < (needed)) { \
168 out = (unsigned char*)ZSTR_VAL(newstr) + (out - (unsigned char*)ZSTR_VAL(buf->str)); \
173 #define MB_CONVERT_BUF_STORE(buf, _out, _limit) buf->out = _out; buf->limit = _limit
175 #define MB_CONVERT_BUF_LOAD(buf, _out, _limit) _out = buf->out; _limit = buf->limit
177 #define MB_CONVERT_ERROR(buf, out, limit, bad_cp, conv_fn) \ argument
178 MB_CONVERT_BUF_STORE(buf, out, limit); \
180 MB_CONVERT_BUF_LOAD(buf, out, limit)
182 static inline unsigned char* mb_convert_buf_add(unsigned char *out, char c) in mb_convert_buf_add() argument
184 *out++ = c; in mb_convert_buf_add()
185 return out; in mb_convert_buf_add()
188 static inline unsigned char* mb_convert_buf_add2(unsigned char *out, char c1, char c2) in mb_convert_buf_add2() argument
190 *out++ = c1; in mb_convert_buf_add2()
191 *out++ = c2; in mb_convert_buf_add2()
192 return out; in mb_convert_buf_add2()
195 static inline unsigned char* mb_convert_buf_add3(unsigned char *out, char c1, char c2, char c3) in mb_convert_buf_add3() argument
197 *out++ = c1; in mb_convert_buf_add3()
198 *out++ = c2; in mb_convert_buf_add3()
199 *out++ = c3; in mb_convert_buf_add3()
200 return out; in mb_convert_buf_add3()
203 static inline unsigned char* mb_convert_buf_add4(unsigned char *out, char c1, char c2, char c3, cha… in mb_convert_buf_add4() argument
205 *out++ = c1; in mb_convert_buf_add4()
206 *out++ = c2; in mb_convert_buf_add4()
207 *out++ = c3; in mb_convert_buf_add4()
208 *out++ = c4; in mb_convert_buf_add4()
209 return out; in mb_convert_buf_add4()
214 ZEND_ASSERT(buf->out <= buf->limit); in mb_convert_buf_result()
220 ZSTR_LEN(ret) = buf->out - (unsigned char*)ZSTR_VAL(ret); in mb_convert_buf_result()
221 *(buf->out) = '\0'; in mb_convert_buf_result()