Lines Matching refs:cd

111 static php_iconv_err_t _php_iconv_appendl(smart_str *d, const char *s, size_t l, iconv_t cd);
112 static php_iconv_err_t _php_iconv_appendc(smart_str *d, const char c, iconv_t cd);
348 static php_iconv_err_t _php_iconv_appendl(smart_str *d, const char *s, size_t l, iconv_t cd) in _php_iconv_appendl() argument
363 if (iconv(cd, (char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_appendl()
388 if (iconv(cd, NULL, NULL, (char **) &out_p, &out_left) == (size_t)0) { in _php_iconv_appendl()
405 static php_iconv_err_t _php_iconv_appendc(smart_str *d, const char c, iconv_t cd) in _php_iconv_appendc() argument
407 return _php_iconv_appendl(d, &c, 1, cd); in _php_iconv_appendc()
432 iconv_t cd; in php_iconv_string() local
442 cd = iconv_open(out_charset, in_charset); in php_iconv_string()
444 if (cd == (iconv_t)(-1)) { in php_iconv_string()
459 result = iconv(cd, (char **) &in_p, &in_left, (char **) &out_p, &out_left); in php_iconv_string()
490 result = iconv(cd, NULL, NULL, (char **) &out_p, &out_left); in php_iconv_string()
509 iconv_close(cd); in php_iconv_string()
546 iconv_t cd; in _php_iconv_strlen() local
559 cd = iconv_open(GENERIC_SUPERSET_NAME, enc); in _php_iconv_strlen()
561 if (cd == (iconv_t)(-1)) { in _php_iconv_strlen()
579 iconv(cd, more ? (char **)&in_p : NULL, more ? &in_left : NULL, (char **) &out_p, &out_left); in _php_iconv_strlen()
607 iconv_close(cd); in _php_iconv_strlen()
755 iconv_t cd; in _php_iconv_strpos() local
784 cd = iconv_open(GENERIC_SUPERSET_NAME, enc); in _php_iconv_strpos()
786 if (cd == (iconv_t)(-1)) { in _php_iconv_strpos()
808 …iconv_ret = iconv(cd, more ? (char **)&in_p : NULL, more ? &in_left : NULL, (char **) &out_p, &out… in _php_iconv_strpos()
885 iconv_close(cd); in _php_iconv_strpos()
899 iconv_t cd = (iconv_t)(-1), cd_pl = (iconv_t)(-1); in _php_iconv_mime_encode() local
948 cd = iconv_open(out_charset, enc); in _php_iconv_mime_encode()
949 if (cd == (iconv_t)(-1)) { in _php_iconv_mime_encode()
1015 if (iconv(cd, (char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_mime_encode()
1040 if (iconv(cd, NULL, NULL, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_mime_encode()
1049 if (iconv(cd, NULL, NULL, NULL, NULL) == (size_t)-1) { in _php_iconv_mime_encode()
1099 if (iconv(cd, (char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_mime_encode()
1121 if (iconv(cd, NULL, NULL, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_mime_encode()
1157 if (iconv(cd, NULL, NULL, NULL, NULL) == (size_t)-1) { in _php_iconv_mime_encode()
1169 if (cd != (iconv_t)(-1)) { in _php_iconv_mime_encode()
1170 iconv_close(cd); in _php_iconv_mime_encode()
1190 iconv_t cd = (iconv_t)(-1), cd_pl = (iconv_t)(-1); in _php_iconv_mime_decode() local
1341 if (cd != (iconv_t)(-1)) { in _php_iconv_mime_decode()
1342 iconv_close(cd); in _php_iconv_mime_decode()
1345 cd = iconv_open(enc, tmpbuf); in _php_iconv_mime_decode()
1347 if (cd == (iconv_t)(-1)) { in _php_iconv_mime_decode()
1578 err = _php_iconv_appendl(pretval, ZSTR_VAL(decoded_text), ZSTR_LEN(decoded_text), cd); in _php_iconv_mime_decode()
1580 err = _php_iconv_appendl(pretval, NULL, 0, cd); in _php_iconv_mime_decode()
1724 if (cd != (iconv_t)(-1)) { in _php_iconv_mime_decode()
1725 iconv_close(cd); in _php_iconv_mime_decode()
2295 iconv_t cd; member
2309 iconv_close(self->cd); in php_iconv_stream_filter_dtor()
2330 if ((iconv_t)-1 == (self->cd = iconv_open(self->to_charset, self->from_charset))) { in php_iconv_stream_filter_ctor()
2374 if (iconv(self->cd, &pt, &tcnt, &pd, &ocnt) == (size_t)-1) { in php_iconv_stream_filter_append_bucket()
2439 if ((ps == NULL ? iconv(self->cd, NULL, NULL, &pd, &ocnt): in php_iconv_stream_filter_append_bucket()
2440 iconv(self->cd, (char **)&ps, &icnt, &pd, &ocnt)) == (size_t)-1) { in php_iconv_stream_filter_append_bucket()