Home
last modified time | relevance | path

Searched refs:in_len (Results 1 – 25 of 29) sorted by relevance

12

/php-src/win32/
H A Dcodepage.h63 PW32CP wchar_t *php_win32_cp_conv_utf8_to_w(const char* in, size_t in_len, size_t *out_len);
65 PW32CP wchar_t *php_win32_cp_conv_cur_to_w(const char* in, size_t in_len, size_t *out_len);
67 PW32CP wchar_t *php_win32_cp_conv_ascii_to_w(const char* in, size_t in_len, size_t *out_len);
70 PW32CP char *php_win32_cp_conv_w_to_utf8(const wchar_t* in, size_t in_len, size_t *out_len);
72 PW32CP char *php_win32_cp_conv_w_to_cur(const wchar_t* in, size_t in_len, size_t *out_len);
79 __forceinline static wchar_t *php_win32_cp_conv_any_to_w(const char* in, size_t in_len, size_t *out… in php_win32_cp_conv_any_to_w() argument
89 ret = php_win32_cp_conv_ascii_to_w(in, in_len, out_len); in php_win32_cp_conv_any_to_w()
93 ret = php_win32_cp_conv_utf8_to_w(in, in_len, out_len); in php_win32_cp_conv_any_to_w()
104 ret = php_win32_cp_conv_to_w(acp->id, acp->to_w_fl, in, in_len, out_len); in php_win32_cp_conv_any_to_w()
110 ret = php_win32_cp_conv_cur_to_w(in, in_len, out_len); in php_win32_cp_conv_any_to_w()
[all …]
H A Dcodepage.c47 assert(in_len ? (in[in_len] == L'\0') : 1); in php_win32_cp_to_w_int()
49 tmp_len = !in_len ? -1 : (int)in_len + 1; in php_win32_cp_to_w_int()
116 assert(in && in_len ? in[in_len] == '\0' : 1); in php_win32_cp_conv_ascii_to_w()
123 in_len = strlen(in); in php_win32_cp_conv_ascii_to_w()
126 end = in + in_len; in php_win32_cp_conv_ascii_to_w()
128 if (in_len > 15) { in php_win32_cp_conv_ascii_to_w()
183 if (in_len > 15) { in php_win32_cp_conv_ascii_to_w()
232 ret[in_len] = L'\0'; in php_win32_cp_conv_ascii_to_w()
237 *out_len = in_len; in php_win32_cp_conv_ascii_to_w()
254 assert(in_len ? in[in_len] == '\0' : 1); in php_win32_cp_from_w_int()
[all …]
/php-src/ext/mbstring/libmbfl/filters/
H A Dmbfilter_utf32.c260 } else if (*in_len >= 4) { in mb_utf32_to_wchar()
271 *in_len -= 4; in mb_utf32_to_wchar()
277 *in_len -= 4; in mb_utf32_to_wchar()
287 unsigned char *p = *in, *e = p + (*in_len & ~3); in mb_utf32be_to_wchar()
304 if (p == e && (*in_len & 0x3) && out < limit) { in mb_utf32be_to_wchar()
307 p = *in + *in_len; in mb_utf32be_to_wchar()
310 *in_len -= (p - *in); in mb_utf32be_to_wchar()
336 unsigned char *p = *in, *e = p + (*in_len & ~3); in mb_utf32le_to_wchar()
353 if (p == e && (*in_len & 0x3) && out < limit) { in mb_utf32le_to_wchar()
356 p = *in + *in_len; in mb_utf32le_to_wchar()
[all …]
H A Dmbfilter_ucs2.c244 return mb_ucs2be_to_wchar(in, in_len, buf, bufsize, NULL); in mb_ucs2_to_wchar()
247 } else if (*in_len >= 2) { in mb_ucs2_to_wchar()
256 *in_len -= 2; in mb_ucs2_to_wchar()
262 *in_len -= 2; in mb_ucs2_to_wchar()
267 return mb_ucs2be_to_wchar(in, in_len, buf, bufsize, NULL); in mb_ucs2_to_wchar()
272 unsigned char *p = *in, *e = p + (*in_len & ~1); in mb_ucs2be_to_wchar()
282 if (p == e && (*in_len & 0x1) && out < limit) { in mb_ucs2be_to_wchar()
288 *in_len -= (p - *in); in mb_ucs2be_to_wchar()
314 unsigned char *p = *in, *e = p + (*in_len & ~1); in mb_ucs2le_to_wchar()
324 if (p == e && (*in_len & 0x1) && out < limit) { in mb_ucs2le_to_wchar()
[all …]
H A Dmbfilter_ucs4.c328 } else if (*in_len >= 4) { in mb_ucs4_to_wchar()
339 *in_len -= 4; in mb_ucs4_to_wchar()
345 *in_len -= 4; in mb_ucs4_to_wchar()
355 unsigned char *p = *in, *e = p + (*in_len & ~3); in mb_ucs4be_to_wchar()
367 if (p == e && (*in_len & 0x3) && out < limit) { in mb_ucs4be_to_wchar()
370 p = *in + *in_len; in mb_ucs4be_to_wchar()
373 *in_len -= (p - *in); in mb_ucs4be_to_wchar()
399 unsigned char *p = *in, *e = p + (*in_len & ~3); in mb_ucs4le_to_wchar()
411 if (p == e && (*in_len & 0x3) && out < limit) { in mb_ucs4le_to_wchar()
414 p = *in + *in_len; in mb_ucs4le_to_wchar()
[all …]
H A Dmbfilter_utf16.c494 } else if (*in_len >= 2) { in mb_utf16_to_wchar()
503 *in_len -= 2; in mb_utf16_to_wchar()
509 *in_len -= 2; in mb_utf16_to_wchar()
559 if (p == e && (*in_len & 0x1) && out < limit) { in mb_utf16be_to_wchar_default()
565 *in_len -= (p - *in); in mb_utf16be_to_wchar_default()
637 if (p == e && (*in_len & 0x1) && out < limit) { in mb_utf16le_to_wchar_default()
643 *in_len -= (p - *in); in mb_utf16le_to_wchar_default()
681 size_t len = *in_len; in mb_utf16be_to_wchar_avx2()
790 *in_len = len; in mb_utf16be_to_wchar_avx2()
881 size_t len = *in_len; in mb_utf16le_to_wchar_avx2()
[all …]
H A Dmbfilter_7bit.c34 static size_t mb_7bit_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, u…
89 static size_t mb_7bit_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, u… in mb_7bit_to_wchar() argument
91 unsigned char *p = *in, *e = p + *in_len; in mb_7bit_to_wchar()
99 *in_len = e - p; in mb_7bit_to_wchar()
H A Dmbfilter_singlebyte.c104 unsigned char *p = *in, *e = p + *in_len; \
110 *in_len = e - p; \
159 static size_t mb_ascii_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, … in mb_ascii_to_wchar() argument
161 unsigned char *p = *in, *e = p + *in_len; in mb_ascii_to_wchar()
169 *in_len = e - p; in mb_ascii_to_wchar()
215 unsigned char *p = *in, *e = p + *in_len; in mb_8859_1_to_wchar()
222 *in_len = e - p; in mb_8859_1_to_wchar()
531 unsigned char *p = *in, *e = p + *in_len; in mb_cp1252_to_wchar()
544 *in_len = e - p; in mb_cp1252_to_wchar()
732 unsigned char *p = *in, *e = p + *in_len; in mb_armscii8_to_wchar()
[all …]
H A Dmbfilter_utf8.c64 static size_t mb_utf8_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, u…
68 static size_t mb_utf8_docomo_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t buf…
70 static size_t mb_utf8_kddi_a_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t buf…
72 static size_t mb_utf8_kddi_b_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t buf…
74 static size_t mb_utf8_sb_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize…
446 static size_t mb_utf8_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, u… in mb_utf8_to_wchar() argument
448 unsigned char *p = *in, *e = p + *in_len; in mb_utf8_to_wchar()
533 *in_len = e - p; in mb_utf8_to_wchar()
734 unsigned char *p = *in, *e = p + *in_len; in mb_mobile_utf8_to_wchar()
826 *in_len = e - p; in mb_mobile_utf8_to_wchar()
[all …]
H A Dmbfilter_qprint.c33 static size_t mb_qprint_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize,…
252 static size_t mb_qprint_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize,… in mb_qprint_to_wchar() argument
254 unsigned char *p = *in, *e = p + *in_len; in mb_qprint_to_wchar()
288 *in_len = e - p; in mb_qprint_to_wchar()
H A Dmbfilter_base64.c34 static size_t mb_base64_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize,…
246 static size_t mb_base64_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize,… in mb_base64_to_wchar() argument
250 unsigned char *p = *in, *e = p + *in_len; in mb_base64_to_wchar()
292 *in_len = e - p; in mb_base64_to_wchar()
H A Dmbfilter_uuencode.c33 static size_t mb_uuencode_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsiz…
170 static size_t mb_uuencode_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsiz… in mb_uuencode_to_wchar() argument
174 unsigned char *p = *in, *e = p + *in_len; in mb_uuencode_to_wchar()
234 *in_len = e - p; in mb_uuencode_to_wchar()
H A Dmbfilter_htmlent.c35 static size_t mb_htmlent_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize…
343 static size_t mb_htmlent_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize… in mb_htmlent_to_wchar() argument
345 unsigned char *p = *in, *e = p + *in_len; in mb_htmlent_to_wchar()
428 *in_len = e - p; in mb_htmlent_to_wchar()
H A Dmbfilter_utf7imap.c84 static size_t mb_utf7imap_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsiz…
86 static bool mb_check_utf7imap(unsigned char *in, size_t in_len);
510 static size_t mb_utf7imap_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsiz… in mb_utf7imap_to_wchar() argument
518 unsigned char *p = *in, *e = p + *in_len; in mb_utf7imap_to_wchar()
625 *in_len = e - p; in mb_utf7imap_to_wchar()
750 static bool mb_check_utf7imap(unsigned char *in, size_t in_len) in mb_check_utf7imap() argument
752 unsigned char *p = in, *e = p + in_len; in mb_check_utf7imap()
H A Dmbfilter_utf7.c35 static size_t mb_utf7_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, u…
37 static bool mb_check_utf7(unsigned char *in, size_t in_len);
495 static size_t mb_utf7_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, u… in mb_utf7_to_wchar() argument
506 unsigned char *p = *in, *e = p + *in_len; in mb_utf7_to_wchar()
617 *in_len = e - p; in mb_utf7_to_wchar()
737 static bool mb_check_utf7(unsigned char *in, size_t in_len) in mb_check_utf7() argument
739 unsigned char *p = in, *e = p + in_len; in mb_check_utf7()
/php-src/ext/mbstring/libmbfl/mbfl/
H A Dmbfilter_8bit.c39 static size_t mb_8bit_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, u…
97 static size_t mb_8bit_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, u… in mb_8bit_to_wchar() argument
99 unsigned char *p = *in, *e = p + *in_len; in mb_8bit_to_wchar()
107 *in_len = e - p; in mb_8bit_to_wchar()
H A Dmbfl_convert.c324 zend_string* mb_fast_convert(unsigned char *in, size_t in_len, const mbfl_encoding *from, const mbf… in mb_fast_convert() argument
336 mb_convert_buf_init(&buf, in_len, replacement_char, error_mode); in mb_fast_convert()
338 while (in_len) { in mb_fast_convert()
339 size_t out_len = from->to_wchar(&in, &in_len, wchar_buf, 128, &state); in mb_fast_convert()
341 to->from_wchar(wchar_buf, out_len, &buf, !in_len); in mb_fast_convert()
H A Dmbfl_encoding.h146 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);
148 typedef bool (*mb_check_fn)(unsigned char *in, size_t in_len);
/php-src/ext/mbstring/
H A Dphp_unicode.c244 static bool scan_ahead_for_cased_letter(unsigned char *in, size_t in_len, unsigned int state, const… in scan_ahead_for_cased_letter() argument
248 while (in_len) { in scan_ahead_for_cased_letter()
249 size_t out_len = encoding->to_wchar(&in, &in_len, wchar_buf, 64, &state); in scan_ahead_for_cased_letter()
282 …unicode_convert_case(php_case_mode case_mode, const char *srcstr, size_t in_len, const mbfl_encodi… in php_unicode_convert_case() argument
294 mb_convert_buf_init(&buf, in_len + 1, illegal_substchar, illegal_mode); in php_unicode_convert_case()
296 while (in_len) { in php_unicode_convert_case()
297 size_t out_len = src_encoding->to_wchar(&in, &in_len, wchar_buf, 64, &state); in php_unicode_convert_case()
392 …if (j >= out_len ? !scan_ahead_for_cased_letter(in, in_len, state, src_encoding) : !php_unicode_is… in php_unicode_convert_case()
442 …if (j >= out_len ? !scan_ahead_for_cased_letter(in, in_len, state, src_encoding) : !php_unicode_is… in php_unicode_convert_case()
469 dst_encoding->from_wchar(converted_buf, p - converted_buf, &buf, !in_len); in php_unicode_convert_case()
H A Dmbstring.c1618 while (in_len) { in PHP_FUNCTION()
1836 while (in_len) { in mb_get_strlen()
2139 in_len -= from; in mb_get_substr()
2141 len = in_len; in mb_get_substr()
2502 while (in_len) { in mb_get_strwidth()
2548 while (in_len) { in mb_trim_string()
3233 size_t in_len; member
3281 array[i].in_len = in_len; in start_string()
3571 if (!in_len) { in jp_kana_convert()
6158 if (!in_len) { in mb_mime_header_encode()
[all …]
/php-src/ext/zlib/
H A Dphp_zlib.h34 #define PHP_ZLIB_BUFFER_SIZE_GUESS(in_len) (((size_t) ((double) in_len * (double) 1.015)) + 10 + 8 … argument
H A Dzlib.c398 Z.avail_in = in_len; in php_zlib_encode()
478 if (in_len) { in php_zlib_decode()
525 size_t in_len; in PHP_FUNCTION() local
564 ctx.in.used = in_len; in PHP_FUNCTION()
738 size_t in_len; \
970 if (in_len <= 0 && flush_type != Z_FINISH) { in PHP_FUNCTION()
974 out = zend_string_alloc((in_len > CHUNK_SIZE) ? in_len : CHUNK_SIZE, 0); in PHP_FUNCTION()
977 ctx->Z.avail_in = in_len; in PHP_FUNCTION()
1174 size_t in_len, out_size, buffer_used; in PHP_FUNCTION() local
1204 if (in_len <= 0 && flush_type != Z_FINISH) { in PHP_FUNCTION()
[all …]
/php-src/ext/iconv/
H A Dphp_iconv.h83 PHP_ICONV_API php_iconv_err_t php_iconv_string(const char * in_p, size_t in_len, zend_string **out,…
/php-src/ext/hash/
H A Dphp_hash.h161 static inline void php_hash_bin2hex(char *out, const unsigned char *in, size_t in_len) in php_hash_bin2hex() argument
166 for(i = 0; i < in_len; i++) { in php_hash_bin2hex()
/php-src/main/
H A Dfastcgi.c216 int in_len; member
963 ret = _read(req->fd, ((char*)buf)+n, in_len); in safe_read()
965 int in_len = tmp > INT_MAX ? INT_MAX : (int)tmp; in safe_read() local
967 ret = recv(req->fd, ((char*)buf)+n, in_len, 0); in safe_read()
1044 req->in_len = 0; in fcgi_read_request()
1213 if (req->in_len == 0) { in fcgi_read()
1222 if (req->in_len == 0) { in fcgi_read()
1227 if (req->in_len >= rest) { in fcgi_read()
1230 ret = (int)safe_read(req, str, req->in_len); in fcgi_read()
1236 req->in_len -= ret; in fcgi_read()
[all …]

Completed in 61 milliseconds

12