Lines Matching refs:cd

141 static php_iconv_err_t _php_iconv_appendl(smart_str *d, const char *s, size_t l, iconv_t cd);
142 static php_iconv_err_t _php_iconv_appendc(smart_str *d, const char c, iconv_t cd);
355 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
370 if (iconv(cd, (ICONV_CONST char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_appendl()
395 if (iconv(cd, NULL, NULL, (char **) &out_p, &out_left) == (size_t)0) { in _php_iconv_appendl()
412 static php_iconv_err_t _php_iconv_appendc(smart_str *d, const char c, iconv_t cd) in _php_iconv_appendc() argument
414 return _php_iconv_appendl(d, &c, 1, cd); in _php_iconv_appendc()
439 iconv_t cd; in php_iconv_string() local
449 cd = iconv_open(out_charset, in_charset); in php_iconv_string()
451 if (cd == (iconv_t)(-1)) { in php_iconv_string()
466 result = iconv(cd, (ICONV_CONST char **) &in_p, &in_left, (char **) &out_p, &out_left); in php_iconv_string()
497 result = iconv(cd, NULL, NULL, (char **) &out_p, &out_left); in php_iconv_string()
516 iconv_close(cd); in php_iconv_string()
553 iconv_t cd; in _php_iconv_strlen() local
566 cd = iconv_open(GENERIC_SUPERSET_NAME, enc); in _php_iconv_strlen()
568 if (cd == (iconv_t)(-1)) { in _php_iconv_strlen()
586 …iconv(cd, more ? (ICONV_CONST char **)&in_p : NULL, more ? &in_left : NULL, (char **) &out_p, &out… in _php_iconv_strlen()
614 iconv_close(cd); in _php_iconv_strlen()
762 iconv_t cd; in _php_iconv_strpos() local
791 cd = iconv_open(GENERIC_SUPERSET_NAME, enc); in _php_iconv_strpos()
793 if (cd == (iconv_t)(-1)) { in _php_iconv_strpos()
815 …iconv_ret = iconv(cd, more ? (ICONV_CONST char **)&in_p : NULL, more ? &in_left : NULL, (char **) … in _php_iconv_strpos()
892 iconv_close(cd); in _php_iconv_strpos()
906 iconv_t cd = (iconv_t)(-1), cd_pl = (iconv_t)(-1); in _php_iconv_mime_encode() local
955 cd = iconv_open(out_charset, enc); in _php_iconv_mime_encode()
956 if (cd == (iconv_t)(-1)) { in _php_iconv_mime_encode()
1022 … if (iconv(cd, (ICONV_CONST char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_mime_encode()
1047 if (iconv(cd, NULL, NULL, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_mime_encode()
1056 if (iconv(cd, NULL, NULL, NULL, NULL) == (size_t)-1) { in _php_iconv_mime_encode()
1106 … if (iconv(cd, (ICONV_CONST char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_mime_encode()
1128 if (iconv(cd, NULL, NULL, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_mime_encode()
1164 if (iconv(cd, NULL, NULL, NULL, NULL) == (size_t)-1) { in _php_iconv_mime_encode()
1176 if (cd != (iconv_t)(-1)) { in _php_iconv_mime_encode()
1177 iconv_close(cd); in _php_iconv_mime_encode()
1197 iconv_t cd = (iconv_t)(-1), cd_pl = (iconv_t)(-1); in _php_iconv_mime_decode() local
1348 if (cd != (iconv_t)(-1)) { in _php_iconv_mime_decode()
1349 iconv_close(cd); in _php_iconv_mime_decode()
1352 cd = iconv_open(enc, tmpbuf); in _php_iconv_mime_decode()
1354 if (cd == (iconv_t)(-1)) { in _php_iconv_mime_decode()
1587 err = _php_iconv_appendl(pretval, ZSTR_VAL(decoded_text), ZSTR_LEN(decoded_text), cd); in _php_iconv_mime_decode()
1589 err = _php_iconv_appendl(pretval, NULL, 0, cd); in _php_iconv_mime_decode()
1733 if (cd != (iconv_t)(-1)) { in _php_iconv_mime_decode()
1734 iconv_close(cd); in _php_iconv_mime_decode()
2296 iconv_t cd; member
2310 iconv_close(self->cd); in php_iconv_stream_filter_dtor()
2331 if ((iconv_t)-1 == (self->cd = iconv_open(self->to_charset, self->from_charset))) { in php_iconv_stream_filter_ctor()
2375 if (iconv(self->cd, (ICONV_CONST char **)&pt, &tcnt, &pd, &ocnt) == (size_t)-1) { in php_iconv_stream_filter_append_bucket()
2440 if ((ps == NULL ? iconv(self->cd, NULL, NULL, &pd, &ocnt): in php_iconv_stream_filter_append_bucket()
2441 iconv(self->cd, (ICONV_CONST char **)&ps, &icnt, &pd, &ocnt)) == (size_t)-1) { in php_iconv_stream_filter_append_bucket()