Lines Matching refs:out_left

360 	size_t out_left = 0;  in _php_iconv_appendl()  local
365 out_left = buf_growth; in _php_iconv_appendl()
366 smart_str_alloc(d, out_left, 0); in _php_iconv_appendl()
370 if (iconv(cd, (ICONV_CONST char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_appendl()
385 ZSTR_LEN((d)->s) += (buf_growth - out_left); in _php_iconv_appendl()
390 out_left = buf_growth; in _php_iconv_appendl()
391 smart_str_alloc(d, out_left, 0); in _php_iconv_appendl()
395 if (iconv(cd, NULL, NULL, (char **) &out_p, &out_left) == (size_t)0) { in _php_iconv_appendl()
396 ZSTR_LEN((d)->s) += (buf_growth - out_left); in _php_iconv_appendl()
403 ZSTR_LEN((d)->s) += (buf_growth - out_left); in _php_iconv_appendl()
440 size_t in_left, out_size, out_left; in php_iconv_string() local
459 out_left = in_len + 32; /* Avoid realloc() most cases */ in php_iconv_string()
461 bsz = out_left; in php_iconv_string()
466 result = iconv(cd, (ICONV_CONST char **) &in_p, &in_left, (char **) &out_p, &out_left); in php_iconv_string()
467 out_size = bsz - out_left; in php_iconv_string()
487 out_left = bsz - out_size; in php_iconv_string()
497 result = iconv(cd, NULL, NULL, (char **) &out_p, &out_left); in php_iconv_string()
498 out_size = bsz - out_left; in php_iconv_string()
509 out_left = bsz - out_size; in php_iconv_string()
559 size_t out_left; in _php_iconv_strlen() local
577 out_left = 0; in _php_iconv_strlen()
582 out_left = sizeof(buf); in _php_iconv_strlen()
586 …cd, more ? (ICONV_CONST char **)&in_p : NULL, more ? &in_left : NULL, (char **) &out_p, &out_left); in _php_iconv_strlen()
587 if (out_left == sizeof(buf)) { in _php_iconv_strlen()
590 ZEND_ASSERT((sizeof(buf) - out_left) % GENERIC_SUPERSET_NBYTES == 0); in _php_iconv_strlen()
591 cnt += (sizeof(buf) - out_left) / GENERIC_SUPERSET_NBYTES; in _php_iconv_strlen()
635 size_t out_left; in _php_iconv_substr() local
689 out_left = sizeof(buf); in _php_iconv_substr()
693 …d1, more ? (ICONV_CONST char **)&in_p : NULL, more ? &in_left : NULL, (char **) &out_p, &out_left); in _php_iconv_substr()
694 if (out_left == sizeof(buf)) { in _php_iconv_substr()
768 size_t out_left; in _php_iconv_strpos() local
811 out_left = sizeof(buf); in _php_iconv_strpos()
815 …cd, more ? (ICONV_CONST char **)&in_p : NULL, more ? &in_left : NULL, (char **) &out_p, &out_left); in _php_iconv_strpos()
816 if (out_left == sizeof(buf)) { in _php_iconv_strpos()
914 size_t out_left; in _php_iconv_mime_encode() local
1020 out_left = out_size - out_reserved; 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()
1045 out_left += out_reserved; in _php_iconv_mime_encode()
1047 if (iconv(cd, NULL, NULL, (char **) &out_p, &out_left) == (size_t)-1) { in _php_iconv_mime_encode()
1068 encoded = php_base64_encode((unsigned char *) buf, (out_size - out_left)); in _php_iconv_mime_encode()
1104 out_left = out_size; 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()