Home
last modified time | relevance | path

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

12

/PHP-8.3/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-8.3/ext/mbstring/libmbfl/filters/
H A Dmbfilter_utf32.c257 } else if (*in_len >= 4) { in mb_utf32_to_wchar()
268 *in_len -= 4; in mb_utf32_to_wchar()
274 *in_len -= 4; in mb_utf32_to_wchar()
284 unsigned char *p = *in, *e = p + (*in_len & ~3); in mb_utf32be_to_wchar()
301 if (p == e && (*in_len & 0x3) && out < limit) { in mb_utf32be_to_wchar()
304 p = *in + *in_len; in mb_utf32be_to_wchar()
307 *in_len -= (p - *in); in mb_utf32be_to_wchar()
333 unsigned char *p = *in, *e = p + (*in_len & ~3); in mb_utf32le_to_wchar()
350 if (p == e && (*in_len & 0x3) && out < limit) { in mb_utf32le_to_wchar()
353 p = *in + *in_len; in mb_utf32le_to_wchar()
[all …]
H A Dmbfilter_ucs2.c241 return mb_ucs2be_to_wchar(in, in_len, buf, bufsize, NULL); in mb_ucs2_to_wchar()
244 } else if (*in_len >= 2) { in mb_ucs2_to_wchar()
253 *in_len -= 2; in mb_ucs2_to_wchar()
259 *in_len -= 2; in mb_ucs2_to_wchar()
264 return mb_ucs2be_to_wchar(in, in_len, buf, bufsize, NULL); in mb_ucs2_to_wchar()
269 unsigned char *p = *in, *e = p + (*in_len & ~1); in mb_ucs2be_to_wchar()
279 if (p == e && (*in_len & 0x1) && out < limit) { in mb_ucs2be_to_wchar()
285 *in_len -= (p - *in); in mb_ucs2be_to_wchar()
311 unsigned char *p = *in, *e = p + (*in_len & ~1); in mb_ucs2le_to_wchar()
321 if (p == e && (*in_len & 0x1) && out < limit) { in mb_ucs2le_to_wchar()
[all …]
H A Dmbfilter_ucs4.c325 } else if (*in_len >= 4) { in mb_ucs4_to_wchar()
336 *in_len -= 4; in mb_ucs4_to_wchar()
342 *in_len -= 4; in mb_ucs4_to_wchar()
352 unsigned char *p = *in, *e = p + (*in_len & ~3); in mb_ucs4be_to_wchar()
364 if (p == e && (*in_len & 0x3) && out < limit) { in mb_ucs4be_to_wchar()
367 p = *in + *in_len; in mb_ucs4be_to_wchar()
370 *in_len -= (p - *in); in mb_ucs4be_to_wchar()
396 unsigned char *p = *in, *e = p + (*in_len & ~3); in mb_ucs4le_to_wchar()
408 if (p == e && (*in_len & 0x3) && out < limit) { in mb_ucs4le_to_wchar()
411 p = *in + *in_len; in mb_ucs4le_to_wchar()
[all …]
H A Dmbfilter_utf16.c488 } else if (*in_len >= 2) { in mb_utf16_to_wchar()
497 *in_len -= 2; in mb_utf16_to_wchar()
503 *in_len -= 2; in mb_utf16_to_wchar()
553 if (p == e && (*in_len & 0x1) && out < limit) { in mb_utf16be_to_wchar_default()
559 *in_len -= (p - *in); in mb_utf16be_to_wchar_default()
631 if (p == e && (*in_len & 0x1) && out < limit) { in mb_utf16le_to_wchar_default()
637 *in_len -= (p - *in); in mb_utf16le_to_wchar_default()
675 size_t len = *in_len; in mb_utf16be_to_wchar_avx2()
784 *in_len = len; in mb_utf16be_to_wchar_avx2()
875 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…
88 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
90 unsigned char *p = *in, *e = p + *in_len; in mb_7bit_to_wchar()
98 *in_len = e - p; in mb_7bit_to_wchar()
H A Dmbfilter_singlebyte.c103 unsigned char *p = *in, *e = p + *in_len; \
109 *in_len = e - p; \
158 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
160 unsigned char *p = *in, *e = p + *in_len; in mb_ascii_to_wchar()
168 *in_len = e - p; in mb_ascii_to_wchar()
214 unsigned char *p = *in, *e = p + *in_len; in mb_8859_1_to_wchar()
221 *in_len = e - p; in mb_8859_1_to_wchar()
530 unsigned char *p = *in, *e = p + *in_len; in mb_cp1252_to_wchar()
543 *in_len = e - p; in mb_cp1252_to_wchar()
731 unsigned char *p = *in, *e = p + *in_len; in mb_armscii8_to_wchar()
[all …]
H A Dmbfilter_utf8_mobile.c41 static size_t mb_utf8_docomo_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t buf…
43 static size_t mb_utf8_kddi_a_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t buf…
45 static size_t mb_utf8_kddi_b_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t buf…
47 static size_t mb_utf8_sb_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize…
406 unsigned char *p = *in, *e = p + *in_len; in mb_mobile_utf8_to_wchar()
498 *in_len = e - p; in mb_mobile_utf8_to_wchar()
503 static size_t mb_utf8_docomo_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t buf… in mb_utf8_docomo_to_wchar() argument
582 …return mb_mobile_utf8_to_wchar(in, in_len, buf, bufsize, state, mbfl_kddi2uni_pua, mbfilter_sjis_e… in mb_utf8_kddi_a_to_wchar()
684 …return mb_mobile_utf8_to_wchar(in, in_len, buf, bufsize, state, mbfl_kddi2uni_pua_b, mbfilter_sjis… in mb_utf8_kddi_b_to_wchar()
692 static size_t mb_utf8_sb_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize… in mb_utf8_sb_to_wchar() argument
[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,…
251 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
253 unsigned char *p = *in, *e = p + *in_len; in mb_qprint_to_wchar()
287 *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,…
245 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
249 unsigned char *p = *in, *e = p + *in_len; in mb_base64_to_wchar()
291 *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…
169 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
173 unsigned char *p = *in, *e = p + *in_len; in mb_uuencode_to_wchar()
233 *in_len = e - p; in mb_uuencode_to_wchar()
H A Dmbfilter_utf8.c52 static size_t mb_utf8_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, u…
219 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
221 unsigned char *p = *in, *e = p + *in_len; in mb_utf8_to_wchar()
306 *in_len = e - p; in mb_utf8_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…
342 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
344 unsigned char *p = *in, *e = p + *in_len; in mb_htmlent_to_wchar()
427 *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);
509 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
517 unsigned char *p = *in, *e = p + *in_len; in mb_utf7imap_to_wchar()
623 *in_len = e - p; in mb_utf7imap_to_wchar()
748 static bool mb_check_utf7imap(unsigned char *in, size_t in_len) in mb_check_utf7imap() argument
750 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);
494 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
505 unsigned char *p = *in, *e = p + *in_len; in mb_utf7_to_wchar()
616 *in_len = e - p; in mb_utf7_to_wchar()
736 static bool mb_check_utf7(unsigned char *in, size_t in_len) in mb_check_utf7() argument
738 unsigned char *p = in, *e = p + in_len; in mb_check_utf7()
/PHP-8.3/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…
96 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
98 unsigned char *p = *in, *e = p + *in_len; in mb_8bit_to_wchar()
106 *in_len = e - p; in mb_8bit_to_wchar()
H A Dmbfl_convert.c325 zend_string* mb_fast_convert(unsigned char *in, size_t in_len, const mbfl_encoding *from, const mbf… in mb_fast_convert() argument
337 mb_convert_buf_init(&buf, in_len, replacement_char, error_mode); in mb_fast_convert()
339 while (in_len) { in mb_fast_convert()
340 size_t out_len = from->to_wchar(&in, &in_len, wchar_buf, 128, &state); in mb_fast_convert()
342 to->from_wchar(wchar_buf, out_len, &buf, !in_len); in mb_fast_convert()
H A Dmbfl_encoding.h145 typedef size_t (*mb_to_wchar_fn)(unsigned char **in, size_t *in_len, uint32_t *out, size_t out_len,…
146 typedef void (*mb_from_wchar_fn)(uint32_t *in, size_t in_len, mb_convert_buf *out, bool end);
147 typedef bool (*mb_check_fn)(unsigned char *in, size_t in_len);
/PHP-8.3/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.c1613 while (in_len) { in PHP_FUNCTION()
1831 while (in_len) { in mb_get_strlen()
2134 in_len -= from; in mb_get_substr()
2136 len = in_len; in mb_get_substr()
2462 while (in_len) { in mb_get_strwidth()
2508 while (in_len) { in mb_trim_string()
2977 size_t in_len; member
3025 array[i].in_len = in_len; in start_string()
3315 if (!in_len) { in jp_kana_convert()
5891 if (!in_len) { in mb_mime_header_encode()
[all …]
/PHP-8.3/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.c399 Z.avail_in = in_len; in php_zlib_encode()
479 if (in_len) { in php_zlib_decode()
526 size_t in_len; in PHP_FUNCTION() local
565 ctx.in.used = in_len; in PHP_FUNCTION()
739 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-8.3/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-8.3/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()

Completed in 92 milliseconds

12