Home
last modified time | relevance | path

Searched refs:mb_len (Results 1 – 4 of 4) sorted by relevance

/PHP-7.4/ext/com_dotnet/
H A Dcom_olechar.c111 size_t mb_len = ZSTR_LEN(string); in php_com_string_to_bstr() local
114 …if ((wc_len = MultiByteToWideChar(codepage, flags, ZSTR_VAL(string), (int)mb_len + 1, NULL, 0)) <=… in php_com_string_to_bstr()
120 …if ((wc_len = MultiByteToWideChar(codepage, flags, ZSTR_VAL(string), (int)mb_len + 1, bstr, wc_len… in php_com_string_to_bstr()
138 int mb_len; in php_com_bstr_to_string() local
140 mb_len = WideCharToMultiByte(codepage, 0, bstr, wc_len + 1, NULL, 0, NULL, NULL); in php_com_bstr_to_string()
141 if (mb_len > 0) { in php_com_bstr_to_string()
142 string = zend_string_alloc(mb_len - 1, 0); in php_com_bstr_to_string()
143 mb_len = WideCharToMultiByte(codepage, 0, bstr, wc_len + 1, ZSTR_VAL(string), mb_len, NULL, NULL); in php_com_bstr_to_string()
146 if (mb_len <= 0) { in php_com_bstr_to_string()
/PHP-7.4/ext/standard/
H A Dexec.c311 int mb_len = php_mblen(str + x, (l - x)); in php_escape_shell_cmd() local
314 if (mb_len < 0) { in php_escape_shell_cmd()
316 } else if (mb_len > 1) { in php_escape_shell_cmd()
317 memcpy(ZSTR_VAL(cmd) + y, str + x, mb_len); in php_escape_shell_cmd()
318 y += mb_len; in php_escape_shell_cmd()
319 x += mb_len - 1; in php_escape_shell_cmd()
421 int mb_len = php_mblen(str + x, (l - x)); in php_escape_shell_arg() local
424 if (mb_len < 0) { in php_escape_shell_arg()
426 } else if (mb_len > 1) { in php_escape_shell_arg()
428 y += mb_len; in php_escape_shell_arg()
[all …]
/PHP-7.4/win32/
H A Dioutil.h185 size_t mb_len; in php_win32_ioutil_conv_any_to_w() local
187 mb = php_win32_cp_conv_any_to_w(in, in_len, &mb_len); in php_win32_ioutil_conv_any_to_w()
193 if (mb_len >= _MAX_PATH) { in php_win32_ioutil_conv_any_to_w()
208 if (new_mb_len > mb_len) { in php_win32_ioutil_conv_any_to_w()
216 mb_len = new_mb_len; in php_win32_ioutil_conv_any_to_w()
219 …_IOUTIL_IS_LONG_PATHW(mb, mb_len) || PHP_WIN32_IOUTIL_IS_JUNCTION_PATHW(mb, mb_len) || PHP_WIN32_I… in php_win32_ioutil_conv_any_to_w()
220 memmove(ret, mb, mb_len * sizeof(wchar_t)); in php_win32_ioutil_conv_any_to_w()
221 ret[mb_len] = L'\0'; in php_win32_ioutil_conv_any_to_w()
225 while (src < mb + mb_len) { in php_win32_ioutil_conv_any_to_w()
235 mb_len += PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW; in php_win32_ioutil_conv_any_to_w()
[all …]
/PHP-7.4/ext/mbstring/
H A Dmbstring.c2349 size_t mb_len, chunks, chunk_len; in PHP_FUNCTION() local
2383 mb_len = string.len; in PHP_FUNCTION()
2386 mb_len = string.len / 2; in PHP_FUNCTION()
2389 mb_len = string.len / 4; in PHP_FUNCTION()
2469 chunks = (mb_len + split_length - 1) / split_length; /* (round up idiom) */ in PHP_FUNCTION()

Completed in 35 milliseconds