Lines Matching refs:size_t
142 static php_iconv_err_t _php_iconv_appendl(smart_str *d, const char *s, size_t l, iconv_t cd);
147 static php_iconv_err_t _php_iconv_strlen(size_t *pretval, const char *str, size_t nbytes, const cha…
149 static php_iconv_err_t _php_iconv_substr(smart_str *pretval, const char *str, size_t nbytes, zend_l…
151 …code(smart_str *pretval, const char *fname, size_t fname_nbytes, const char *fval, size_t fval_nby…
153 static php_iconv_err_t _php_iconv_mime_decode(smart_str *pretval, const char *str, size_t str_nbyte…
158 static int php_iconv_output_conflict(const char *handler_name, size_t handler_name_len);
159 static php_output_handler *php_iconv_output_handler_init(const char *name, size_t name_len, size_t …
284 static int php_iconv_output_conflict(const char *handler_name, size_t handler_name_len) in php_iconv_output_conflict()
295 …ler *php_iconv_output_handler_init(const char *handler_name, size_t handler_name_len, size_t chunk… in php_iconv_output_handler_init()
323 size_t len; in php_iconv_output_handler()
356 static php_iconv_err_t _php_iconv_appendl(smart_str *d, const char *s, size_t l, iconv_t cd) in _php_iconv_appendl()
359 size_t in_left = l; in _php_iconv_appendl()
361 size_t out_left = 0; in _php_iconv_appendl()
362 size_t buf_growth = 128; in _php_iconv_appendl()
371 if (iconv(cd, (ICONV_CONST char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_appendl()
396 if (iconv(cd, NULL, NULL, (char **) &out_p, &out_left) == (size_t)0) { in _php_iconv_appendl()
423 size_t clen = strlen(charset); in _php_check_ignore()
438 PHP_ICONV_API php_iconv_err_t php_iconv_string(const char *in_p, size_t in_len, zend_string **out, … in php_iconv_string()
441 size_t in_left, out_size, out_left; in php_iconv_string()
443 size_t bsz, result = 0; in php_iconv_string()
469 if (result == (size_t)(-1)) { in php_iconv_string()
495 if (result != (size_t)(-1)) { in php_iconv_string()
501 if (result != (size_t)(-1)) { in php_iconv_string()
519 if (result == (size_t)(-1)) { in php_iconv_string()
548 static php_iconv_err_t _php_iconv_strlen(size_t *pretval, const char *str, size_t nbytes, const cha… in _php_iconv_strlen()
557 size_t in_left; in _php_iconv_strlen()
560 size_t out_left; in _php_iconv_strlen()
562 size_t cnt; in _php_iconv_strlen()
565 *pretval = (size_t)-1; in _php_iconv_strlen()
624 const char *str, size_t nbytes, zend_long offset, zend_long len, const char *enc) in _php_iconv_substr()
633 size_t in_left; in _php_iconv_substr()
636 size_t out_left; in _php_iconv_substr()
638 size_t cnt; in _php_iconv_substr()
639 size_t total_len; in _php_iconv_substr()
651 } else if ((size_t)offset > total_len) { in _php_iconv_substr()
659 } else if ((size_t)len > total_len) { in _php_iconv_substr()
663 if ((size_t)(offset + len) > total_len ) { in _php_iconv_substr()
754 static php_iconv_err_t _php_iconv_strpos(size_t *pretval, in _php_iconv_strpos()
755 const char *haystk, size_t haystk_nbytes, in _php_iconv_strpos()
756 const char *ndl, size_t ndl_nbytes, in _php_iconv_strpos()
757 size_t offset, const char *enc, bool reverse) in _php_iconv_strpos()
766 size_t in_left; in _php_iconv_strpos()
769 size_t out_left; in _php_iconv_strpos()
771 size_t cnt; in _php_iconv_strpos()
775 size_t ndl_buf_left; in _php_iconv_strpos()
777 size_t match_ofs; in _php_iconv_strpos()
779 size_t iconv_ret; in _php_iconv_strpos()
781 *pretval = (size_t)-1; in _php_iconv_strpos()
807 match_ofs = (size_t)-1; in _php_iconv_strpos()
820 if (iconv_ret == (size_t)-1) { in _php_iconv_strpos()
840 if (match_ofs == (size_t)-1) { in _php_iconv_strpos()
858 size_t i, j, lim; in _php_iconv_strpos()
862 lim = (size_t)(ndl_buf_p - ZSTR_VAL(ndl_buf)); in _php_iconv_strpos()
881 match_ofs = (size_t)-1; in _php_iconv_strpos()
904 …code(smart_str *pretval, const char *fname, size_t fname_nbytes, const char *fval, size_t fval_nby… in _php_iconv_mime_encode()
908 size_t char_cnt = 0; in _php_iconv_mime_encode()
909 size_t out_charset_len; in _php_iconv_mime_encode()
910 size_t lfchars_len; in _php_iconv_mime_encode()
913 size_t in_left; in _php_iconv_mime_encode()
915 size_t out_left; in _php_iconv_mime_encode()
979 size_t prev_in_left; in _php_iconv_mime_encode()
980 size_t out_size; in _php_iconv_mime_encode()
981 …size_t encoded_word_min_len = sizeof("=\?\?X\?\?=")-1 + out_charset_len + (enc_scheme == PHP_ICONV… in _php_iconv_mime_encode()
999 size_t ini_in_left; in _php_iconv_mime_encode()
1001 size_t out_reserved = 4; in _php_iconv_mime_encode()
1023 … if (iconv(cd, (ICONV_CONST char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_mime_encode()
1048 if (iconv(cd, NULL, NULL, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_mime_encode()
1057 if (iconv(cd, NULL, NULL, NULL, NULL) == (size_t)-1) { in _php_iconv_mime_encode()
1087 size_t ini_in_left; in _php_iconv_mime_encode()
1090 size_t nbytes_required; in _php_iconv_mime_encode()
1107 … if (iconv(cd, (ICONV_CONST char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_mime_encode()
1129 if (iconv(cd, NULL, NULL, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_mime_encode()
1165 if (iconv(cd, NULL, NULL, NULL, NULL) == (size_t)-1) { in _php_iconv_mime_encode()
1194 static php_iconv_err_t _php_iconv_mime_decode(smart_str *pretval, const char *str, size_t str_nbyte… in _php_iconv_mime_decode()
1201 size_t str_left; in _php_iconv_mime_decode()
1204 size_t csname_len; in _php_iconv_mime_decode()
1206 size_t encoded_text_len = 0; in _php_iconv_mime_decode()
1274 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1304 err = _php_iconv_appendl(pretval, csname, (size_t)((p1 + 1) - csname), cd_pl); in _php_iconv_mime_decode()
1325 csname_len = (size_t)(p1 - csname); in _php_iconv_mime_decode()
1329 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1387 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1425 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1447 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1469 encoded_text_len = (size_t)(p1 - encoded_text); in _php_iconv_mime_decode()
1503 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1542 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1571 err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl); in _php_iconv_mime_decode()
1597 err = _php_iconv_appendl(pretval, encoded_word, (size_t)(p1 - encoded_word), cd_pl); in _php_iconv_mime_decode()
1657 _php_iconv_appendl(pretval, spaces, (size_t)(p1 - spaces), cd_pl); in _php_iconv_mime_decode()
1669 _php_iconv_appendl(pretval, spaces, (size_t)(p1 - spaces), cd_pl); in _php_iconv_mime_decode()
1793 size_t charset_len; in PHP_FUNCTION()
1798 size_t retval; in PHP_FUNCTION()
1826 size_t charset_len; in PHP_FUNCTION()
1867 size_t charset_len, haystk_len; in PHP_FUNCTION()
1874 size_t retval; in PHP_FUNCTION()
1913 if (err == PHP_ICONV_ERR_SUCCESS && retval != (size_t)-1) { in PHP_FUNCTION()
1925 size_t charset_len; in PHP_FUNCTION()
1931 size_t retval; in PHP_FUNCTION()
1955 if (err == PHP_ICONV_ERR_SUCCESS && retval != (size_t)-1) { in PHP_FUNCTION()
2066 size_t charset_len; in PHP_FUNCTION()
2103 size_t charset_len; in PHP_FUNCTION()
2106 size_t enc_str_len_tmp; in PHP_FUNCTION()
2130 size_t header_name_len = 0; in PHP_FUNCTION()
2132 size_t header_value_len = 0; in PHP_FUNCTION()
2202 size_t in_charset_len = 0, out_charset_len = 0; in PHP_FUNCTION()
2216 …err = php_iconv_string(ZSTR_VAL(in_buffer), (size_t)ZSTR_LEN(in_buffer), &out_buffer, out_charset,… in PHP_FUNCTION()
2300 size_t to_charset_len;
2302 size_t from_charset_len;
2304 size_t stub_len;
2319 const char *to_charset, size_t to_charset_len, in php_iconv_stream_filter_ctor()
2320 const char *from_charset, size_t from_charset_len, int persistent) in php_iconv_stream_filter_ctor()
2348 const char *ps, size_t buf_len, size_t *consumed, in php_iconv_stream_filter_append_bucket()
2353 size_t out_buf_size; in php_iconv_stream_filter_append_bucket()
2355 size_t ocnt, prev_ocnt, icnt, tcnt; in php_iconv_stream_filter_append_bucket()
2356 size_t initial_out_buf_size; in php_iconv_stream_filter_append_bucket()
2376 if (iconv(self->cd, (ICONV_CONST char **)&pt, &tcnt, &pd, &ocnt) == (size_t)-1) { in php_iconv_stream_filter_append_bucket()
2405 size_t new_out_buf_size; in php_iconv_stream_filter_append_bucket()
2442 iconv(self->cd, (ICONV_CONST char **)&ps, &icnt, &pd, &ocnt)) == (size_t)-1) { in php_iconv_stream_filter_append_bucket()
2466 size_t new_out_buf_size; in php_iconv_stream_filter_append_bucket()
2525 size_t *bytes_consumed, int flags) in php_iconv_stream_filter_do_filter()
2528 size_t consumed = 0; in php_iconv_stream_filter_do_filter()
2587 size_t from_charset_len, to_charset_len; in php_iconv_stream_filter_factory_create()