Lines Matching refs:cd
119 static php_iconv_err_t _php_iconv_appendl(smart_str *d, const char *s, size_t l, iconv_t cd);
120 static php_iconv_err_t _php_iconv_appendc(smart_str *d, const char c, iconv_t cd);
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() argument
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()
413 static php_iconv_err_t _php_iconv_appendc(smart_str *d, const char c, iconv_t cd) in _php_iconv_appendc() argument
415 return _php_iconv_appendl(d, &c, 1, cd); in _php_iconv_appendc()
440 iconv_t cd; in php_iconv_string() local
450 cd = iconv_open(out_charset, in_charset); in php_iconv_string()
452 if (cd == (iconv_t)(-1)) { in php_iconv_string()
467 result = iconv(cd, (ICONV_CONST char **) &in_p, &in_left, (char **) &out_p, &out_left); in php_iconv_string()
498 result = iconv(cd, NULL, NULL, (char **) &out_p, &out_left); in php_iconv_string()
517 iconv_close(cd); in php_iconv_string()
554 iconv_t cd; in _php_iconv_strlen() local
567 cd = iconv_open(GENERIC_SUPERSET_NAME, enc); in _php_iconv_strlen()
569 if (cd == (iconv_t)(-1)) { in _php_iconv_strlen()
587 …iconv(cd, more ? (ICONV_CONST char **)&in_p : NULL, more ? &in_left : NULL, (char **) &out_p, &out… in _php_iconv_strlen()
615 iconv_close(cd); in _php_iconv_strlen()
763 iconv_t cd; in _php_iconv_strpos() local
792 cd = iconv_open(GENERIC_SUPERSET_NAME, enc); in _php_iconv_strpos()
794 if (cd == (iconv_t)(-1)) { in _php_iconv_strpos()
816 …iconv_ret = iconv(cd, more ? (ICONV_CONST char **)&in_p : NULL, more ? &in_left : NULL, (char **) … in _php_iconv_strpos()
893 iconv_close(cd); in _php_iconv_strpos()
907 iconv_t cd = (iconv_t)(-1), cd_pl = (iconv_t)(-1); in _php_iconv_mime_encode() local
956 cd = iconv_open(out_charset, enc); in _php_iconv_mime_encode()
957 if (cd == (iconv_t)(-1)) { 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()
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()
1177 if (cd != (iconv_t)(-1)) { in _php_iconv_mime_encode()
1178 iconv_close(cd); in _php_iconv_mime_encode()
1198 iconv_t cd = (iconv_t)(-1), cd_pl = (iconv_t)(-1); in _php_iconv_mime_decode() local
1349 if (cd != (iconv_t)(-1)) { in _php_iconv_mime_decode()
1350 iconv_close(cd); in _php_iconv_mime_decode()
1353 cd = iconv_open(enc, tmpbuf); in _php_iconv_mime_decode()
1355 if (cd == (iconv_t)(-1)) { in _php_iconv_mime_decode()
1588 err = _php_iconv_appendl(pretval, ZSTR_VAL(decoded_text), ZSTR_LEN(decoded_text), cd); in _php_iconv_mime_decode()
1590 err = _php_iconv_appendl(pretval, NULL, 0, cd); in _php_iconv_mime_decode()
1734 if (cd != (iconv_t)(-1)) { in _php_iconv_mime_decode()
1735 iconv_close(cd); in _php_iconv_mime_decode()
2305 iconv_t cd; member
2319 iconv_close(self->cd); in php_iconv_stream_filter_dtor()
2340 if ((iconv_t)-1 == (self->cd = iconv_open(self->to_charset, self->from_charset))) { in php_iconv_stream_filter_ctor()
2384 if (iconv(self->cd, (ICONV_CONST char **)&pt, &tcnt, &pd, &ocnt) == (size_t)-1) { in php_iconv_stream_filter_append_bucket()
2449 if ((ps == NULL ? iconv(self->cd, NULL, NULL, &pd, &ocnt): in php_iconv_stream_filter_append_bucket()
2450 iconv(self->cd, (ICONV_CONST char **)&ps, &icnt, &pd, &ocnt)) == (size_t)-1) { in php_iconv_stream_filter_append_bucket()