Lines Matching refs:ret_len
37 int ret_len, tmp_len; in php_win32_cp_to_w_int() local
47 ret_len = MultiByteToWideChar(cp, flags, in, tmp_len, NULL, 0); in php_win32_cp_to_w_int()
48 if (ret_len == 0) { in php_win32_cp_to_w_int()
53 ret = malloc(ret_len * sizeof(wchar_t)); in php_win32_cp_to_w_int()
59 tmp_len = MultiByteToWideChar(cp, flags, in, tmp_len, ret, ret_len); in php_win32_cp_to_w_int()
66 assert(ret ? tmp_len == ret_len : 1); in php_win32_cp_to_w_int()
67 assert(ret && !in_len ? wcslen(ret) == ret_len - 1 : 1); in php_win32_cp_to_w_int()
69 ret[ret_len-1] = L'\0'; in php_win32_cp_to_w_int()
72 *out_len = ret_len - 1; in php_win32_cp_to_w_int()
627 size_t ret_len, tmpw_len; in PHP_FUNCTION() local
691 ret = php_win32_cp_conv_from_w(out_cp->id, out_cp->from_w_fl, tmpw, tmpw_len, &ret_len); in PHP_FUNCTION()
698 RETVAL_STRINGL(ret, ret_len); in PHP_FUNCTION()