Lines Matching refs:cd

200 static php_iconv_err_t _php_iconv_appendl(smart_str *d, const char *s, size_t l, iconv_t cd);
201 static php_iconv_err_t _php_iconv_appendc(smart_str *d, const char c, iconv_t cd);
456 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
474 if (iconv(cd, (char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_appendl()
508 if (iconv(cd, NULL, NULL, (char **) &out_p, &out_left) == (size_t)0) { in _php_iconv_appendl()
531 static php_iconv_err_t _php_iconv_appendc(smart_str *d, const char c, iconv_t cd) in _php_iconv_appendc() argument
533 return _php_iconv_appendl(d, &c, 1, cd); in _php_iconv_appendc()
562 iconv_t cd; in php_iconv_string() local
580 cd = iconv_open(out_charset, in_charset); in php_iconv_string()
582 if (cd == (iconv_t)(-1)) { in php_iconv_string()
590 result = iconv(cd, (char **) &in_p, &in_size, (char **) in php_iconv_string()
592 result = iconv(cd, (const char **) &in_p, &in_size, (char **) in php_iconv_string()
610 result = iconv(cd, NULL, NULL, &out_p, &out_left); in php_iconv_string()
620 iconv_close(cd); in php_iconv_string()
629 iconv_t cd; in php_iconv_string()
639 cd = iconv_open(out_charset, in_charset); in php_iconv_string()
641 if (cd == (iconv_t)(-1)) { in php_iconv_string()
656 result = iconv(cd, (char **) &in_p, &in_left, (char **) &out_p, &out_left); in php_iconv_string()
687 result = iconv(cd, NULL, NULL, (char **) &out_p, &out_left); in php_iconv_string()
706 iconv_close(cd); in php_iconv_string()
744 iconv_t cd; in _php_iconv_strlen() local
756 cd = iconv_open(GENERIC_SUPERSET_NAME, enc); in _php_iconv_strlen()
758 if (cd == (iconv_t)(-1)) { in _php_iconv_strlen()
780 if (iconv(cd, (char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_strlen()
814 iconv_close(cd); in _php_iconv_strlen()
977 iconv_t cd; in _php_iconv_strpos() local
1004 cd = iconv_open(GENERIC_SUPERSET_NAME, enc); in _php_iconv_strpos()
1006 if (cd == (iconv_t)(-1)) { in _php_iconv_strpos()
1032 if (iconv(cd, (char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_strpos()
1146 iconv_close(cd); in _php_iconv_strpos()
1156 iconv_t cd = (iconv_t)(-1), cd_pl = (iconv_t)(-1); in _php_iconv_mime_encode() local
1209 cd = iconv_open(out_charset, enc); in _php_iconv_mime_encode()
1210 if (cd == (iconv_t)(-1)) { in _php_iconv_mime_encode()
1279 if (iconv(cd, (char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_mime_encode()
1311 if (iconv(cd, NULL, NULL, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_mime_encode()
1327 if (iconv(cd, NULL, NULL, NULL, NULL) == (size_t)-1) { in _php_iconv_mime_encode()
1380 if (iconv(cd, (char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_mime_encode()
1412 if (iconv(cd, NULL, NULL, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_mime_encode()
1455 if (iconv(cd, NULL, NULL, NULL, NULL) == (size_t)-1) { in _php_iconv_mime_encode()
1467 if (cd != (iconv_t)(-1)) { in _php_iconv_mime_encode()
1468 iconv_close(cd); in _php_iconv_mime_encode()
1488 iconv_t cd = (iconv_t)(-1), cd_pl = (iconv_t)(-1); in _php_iconv_mime_decode() local
1643 if (cd != (iconv_t)(-1)) { in _php_iconv_mime_decode()
1644 iconv_close(cd); in _php_iconv_mime_decode()
1647 cd = iconv_open(enc, tmpbuf); in _php_iconv_mime_decode()
1649 if (cd == (iconv_t)(-1)) { in _php_iconv_mime_decode()
1884 err = _php_iconv_appendl(pretval, ZSTR_VAL(decoded_text), ZSTR_LEN(decoded_text), cd); in _php_iconv_mime_decode()
2027 if (cd != (iconv_t)(-1)) { in _php_iconv_mime_decode()
2028 iconv_close(cd); in _php_iconv_mime_decode()
2582 iconv_t cd; member
2596 iconv_close(self->cd); in php_iconv_stream_filter_dtor()
2622 if ((iconv_t)-1 == (self->cd = iconv_open(self->to_charset, self->from_charset))) { in php_iconv_stream_filter_ctor()
2668 if (iconv(self->cd, &pt, &tcnt, &pd, &ocnt) == (size_t)-1) { in php_iconv_stream_filter_append_bucket()
2749 if ((ps == NULL ? iconv(self->cd, NULL, NULL, &pd, &ocnt): in php_iconv_stream_filter_append_bucket()
2750 iconv(self->cd, (char **)&ps, &icnt, &pd, &ocnt)) == (size_t)-1) { in php_iconv_stream_filter_append_bucket()