Home
last modified time | relevance | path

Searched refs:out_len (Results 1 – 19 of 19) sorted by relevance

/php-src/win32/
H A Dcodepage.h63 PW32CP wchar_t *php_win32_cp_conv_utf8_to_w(const char* in, size_t in_len, size_t *out_len);
65 PW32CP wchar_t *php_win32_cp_conv_cur_to_w(const char* in, size_t in_len, size_t *out_len);
67 PW32CP wchar_t *php_win32_cp_conv_ascii_to_w(const char* in, size_t in_len, size_t *out_len);
70 PW32CP char *php_win32_cp_conv_w_to_utf8(const wchar_t* in, size_t in_len, size_t *out_len);
72 PW32CP char *php_win32_cp_conv_w_to_cur(const wchar_t* in, size_t in_len, size_t *out_len);
79 …ceinline static wchar_t *php_win32_cp_conv_any_to_w(const char* in, size_t in_len, size_t *out_len) in php_win32_cp_conv_any_to_w() argument
89 ret = php_win32_cp_conv_ascii_to_w(in, in_len, out_len); in php_win32_cp_conv_any_to_w()
93 ret = php_win32_cp_conv_utf8_to_w(in, in_len, out_len); in php_win32_cp_conv_any_to_w()
104 ret = php_win32_cp_conv_to_w(acp->id, acp->to_w_fl, in, in_len, out_len); in php_win32_cp_conv_any_to_w()
110 ret = php_win32_cp_conv_cur_to_w(in, in_len, out_len); in php_win32_cp_conv_any_to_w()
[all …]
H A Dcodepage.c75 if (PHP_WIN32_CP_IGNORE_LEN_P != out_len) { in php_win32_cp_to_w_int()
76 *out_len = ret_len - 1; in php_win32_cp_to_w_int()
91 ret = php_win32_cp_to_w_int(in, in_len, out_len, cur_cp->id, cur_cp->from_w_fl); in php_win32_cp_conv_cur_to_w()
98 return php_win32_cp_to_w_int(in, in_len, out_len, cp, flags); in php_win32_cp_conv_to_w()
102 if (PHP_WIN32_CP_IGNORE_LEN_P != out_len) { \
103 *out_len = 0; \
236 if (PHP_WIN32_CP_IGNORE_LEN_P != out_len) { in php_win32_cp_conv_ascii_to_w()
237 *out_len = in_len; in php_win32_cp_conv_ascii_to_w()
282 if (PHP_WIN32_CP_IGNORE_LEN_P != out_len) { in php_win32_cp_from_w_int()
283 *out_len = target_len - 1; in php_win32_cp_from_w_int()
[all …]
H A Dioutil.h175 …line static wchar_t *php_win32_ioutil_conv_any_to_w(const char* in, size_t in_len, size_t *out_len) in php_win32_ioutil_conv_any_to_w() argument
258 if (PHP_WIN32_CP_IGNORE_LEN_P != out_len) { in php_win32_ioutil_conv_any_to_w()
259 *out_len = mb_len; in php_win32_ioutil_conv_any_to_w()
/php-src/ext/mbstring/
H A Dphp_unicode.c250 ZEND_ASSERT(out_len <= 64); in scan_ahead_for_cased_letter()
251 for (unsigned int i = 0; i < out_len; i++) { in scan_ahead_for_cased_letter()
298 ZEND_ASSERT(out_len <= 64); in php_unicode_convert_case()
304 for (size_t i = 0; i < out_len; i++) { in php_unicode_convert_case()
311 for (size_t i = 0; i < out_len; i++) { in php_unicode_convert_case()
318 for (size_t i = 0; i < out_len; i++) { in php_unicode_convert_case()
325 for (size_t i = 0; i < out_len; i++) { in php_unicode_convert_case()
339 for (size_t i = 0; i < out_len; i++) { in php_unicode_convert_case()
355 for (size_t i = 0; i < out_len; i++) { in php_unicode_convert_case()
408 for (size_t i = 0; i < out_len; i++) { in php_unicode_convert_case()
[all …]
H A Dmbstring.c1723 while (i < out_len) { in PHP_FUNCTION()
2103 if (from >= out_len) { in mb_get_substr_slow()
2104 from -= out_len; in mb_get_substr_slow()
2506 while (out_len) { in mb_get_strwidth()
2544 size_t out_len = 0; in mb_trim_string() local
2553 to_skip -= out_len; in mb_trim_string()
2620 from -= out_len; in mb_trim_string()
3039 size_t out_len = 0; in trim_each_wchar() local
3048 total_len += out_len; in trim_each_wchar()
3324 while (out_len) { in count_demerits()
[all …]
/php-src/ext/sodium/tests/
H A Dpwhash_argon2i.phpt33 $out_len = 100;
35 ($out_len, $passwd, $salt,
39 var_dump(strlen($key) === $out_len);
41 ($out_len, $passwd, $salt,
H A Dpwhash_scrypt.phpt25 $out_len = 100;
27 ($out_len, $passwd, $salt,
30 var_dump(strlen($key) === $out_len);
/php-src/sapi/fuzzer/
H A Dfuzzer-mbstring.c32 …size_t out_len = FromEncoding->to_wchar((unsigned char**)&Data, &Size, wchar_buf, BufSize, &state); in convert_encoding() local
33 ZEND_ASSERT(out_len <= BufSize); in convert_encoding()
34 ToEncoding->from_wchar(wchar_buf, out_len, &buf, !Size); in convert_encoding()
/php-src/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_convert.c339 size_t out_len = from->to_wchar(&in, &in_len, wchar_buf, 128, &state); in mb_fast_convert() local
340 ZEND_ASSERT(out_len <= 128); in mb_fast_convert()
341 to->from_wchar(wchar_buf, out_len, &buf, !in_len); in mb_fast_convert()
H A Dmbfl_encoding.h146 typedef size_t (*mb_to_wchar_fn)(unsigned char **in, size_t *in_len, uint32_t *out, size_t out_len,…
/php-src/ext/standard/
H A Dfilters.c1710 size_t out_len = 0; in php_dechunk() local
1737 return out_len; in php_dechunk()
1745 return out_len; in php_dechunk()
1754 return out_len; in php_dechunk()
1768 return out_len; in php_dechunk()
1786 return out_len; in php_dechunk()
1795 return out_len; in php_dechunk()
1804 return out_len; in php_dechunk()
1826 out_len += end - p; in php_dechunk()
1827 return out_len; in php_dechunk()
[all …]
H A Dpassword.c49 static int php_password_salt_to64(const char *str, const size_t str_len, const size_t out_len, char… in php_password_salt_to64() argument
57 if (ZSTR_LEN(buffer) < out_len) { in php_password_salt_to64()
62 for (pos = 0; pos < out_len; pos++) { in php_password_salt_to64()
H A Dproc_open.c594 size_t out_len; in is_executed_by_cmd() local
599 wchar_t *prog_name_wide = php_win32_cp_conv_any_to_w(prog_name, prog_name_length, &out_len); in is_executed_by_cmd()
/php-src/ext/zlib/
H A Dzlib.c469 static int php_zlib_decode(const char *in_buf, size_t in_len, char **out_buf, size_t *out_len, int … in php_zlib_decode() argument
485 switch (status = php_zlib_inflate_rounds(&Z, max_len, out_buf, out_len)) { in php_zlib_decode()
503 *out_len = 0; in php_zlib_decode()
739 size_t out_len; \
748 if (SUCCESS != php_zlib_decode(in_buf, in_len, &out_buf, &out_len, encoding, max_len)) { \
751 RETVAL_STRINGL(out_buf, out_len); \
/php-src/ext/pdo_odbc/
H A Dodbc_driver.c382 SQLSMALLINT out_len; in pdo_odbc_get_info_string() local
385 rc = SQLGetInfo(H->dbc, type, (SQLPOINTER)buf, sizeof(buf), &out_len); in pdo_odbc_get_info_string()
390 ZVAL_STRINGL(val, buf, out_len); in pdo_odbc_get_info_string()
/php-src/ext/openssl/
H A Dopenssl.c6923 size_t out_len = 0; in PHP_FUNCTION() local
6933 zend_string *out = zend_string_alloc(out_len, 0); in PHP_FUNCTION()
6942 ZSTR_VAL(out)[out_len] = '\0'; in PHP_FUNCTION()
6972 size_t out_len = 0; in PHP_FUNCTION() local
6991 out = zend_string_truncate(out, out_len, 0); in PHP_FUNCTION()
6992 ZSTR_VAL(out)[out_len] = '\0'; in PHP_FUNCTION()
7022 size_t out_len = 0; in PHP_FUNCTION() local
7041 ZSTR_VAL(out)[out_len] = '\0'; in PHP_FUNCTION()
7071 size_t out_len = 0; in PHP_FUNCTION() local
7090 out = zend_string_truncate(out, out_len, 0); in PHP_FUNCTION()
[all …]
/php-src/main/
H A Doutput.c1259 size_t out_len = 0; in php_output_handler_compat_func() local
1261 func(output_context->in.data, output_context->in.used, &out_str, &out_len, output_context->op); in php_output_handler_compat_func()
1265 output_context->out.used = out_len; in php_output_handler_compat_func()
H A Dfastcgi.c924 unsigned int out_len = tmp > UINT_MAX ? UINT_MAX : (unsigned int)tmp; in safe_write() local
926 ret = write(req->fd, ((char*)buf)+n, out_len); in safe_write()
928 int out_len = tmp > INT_MAX ? INT_MAX : (int)tmp; in safe_write() local
930 ret = send(req->fd, ((char*)buf)+n, out_len, 0); in safe_write()
/php-src/ext/curl/
H A Dinterface.c3007 int out_len; in PHP_FUNCTION() local
3023 if ((out = curl_easy_unescape(ch->cp, ZSTR_VAL(str), ZSTR_LEN(str), &out_len))) { in PHP_FUNCTION()
3024 RETVAL_STRINGL(out, out_len); in PHP_FUNCTION()

Completed in 91 milliseconds