Home
last modified time | relevance | path

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

/php-src/ext/com_dotnet/
H A Dcom_olechar.c104 size_t mb_len = ZSTR_LEN(string); in php_com_string_to_bstr() local
107 …if ((wc_len = MultiByteToWideChar(codepage, flags, ZSTR_VAL(string), (int)mb_len + 1, NULL, 0)) <=… in php_com_string_to_bstr()
113 …if ((wc_len = MultiByteToWideChar(codepage, flags, ZSTR_VAL(string), (int)mb_len + 1, bstr, wc_len… in php_com_string_to_bstr()
131 int mb_len; in php_com_bstr_to_string() local
133 mb_len = WideCharToMultiByte(codepage, 0, bstr, wc_len + 1, NULL, 0, NULL, NULL); in php_com_bstr_to_string()
134 if (mb_len > 0) { in php_com_bstr_to_string()
135 string = zend_string_alloc(mb_len - 1, 0); in php_com_bstr_to_string()
136 mb_len = WideCharToMultiByte(codepage, 0, bstr, wc_len + 1, ZSTR_VAL(string), mb_len, NULL, NULL); in php_com_bstr_to_string()
139 if (mb_len <= 0) { in php_com_bstr_to_string()
/php-src/ext/standard/
H A Dexec.c298 int mb_len = php_mblen(str + x, (l - x)); in php_escape_shell_cmd() local
301 if (mb_len < 0) { in php_escape_shell_cmd()
303 } else if (mb_len > 1) { in php_escape_shell_cmd()
304 memcpy(ZSTR_VAL(cmd) + y, str + x, mb_len); in php_escape_shell_cmd()
305 y += mb_len; in php_escape_shell_cmd()
306 x += mb_len - 1; in php_escape_shell_cmd()
411 int mb_len = php_mblen(str + x, (l - x)); in php_escape_shell_arg() local
414 if (mb_len < 0) { in php_escape_shell_arg()
416 } else if (mb_len > 1) { in php_escape_shell_arg()
418 y += mb_len; in php_escape_shell_arg()
[all …]
/php-src/win32/
H A Dioutil.h178 size_t mb_len, dir_len = 0; in php_win32_ioutil_conv_any_to_w() local
180 mb = php_win32_cp_conv_any_to_w(in, in_len, &mb_len); in php_win32_ioutil_conv_any_to_w()
186 …_IOUTIL_IS_ABSOLUTEW(mb, mb_len) && !PHP_WIN32_IOUTIL_IS_JUNCTION_PATHW(mb, mb_len) && !PHP_WIN32_… in php_win32_ioutil_conv_any_to_w()
196 if (dir_len + mb_len >= _MAX_PATH) { in php_win32_ioutil_conv_any_to_w()
211 if (new_mb_len > mb_len) { in php_win32_ioutil_conv_any_to_w()
219 mb_len = new_mb_len; in php_win32_ioutil_conv_any_to_w()
222 …_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()
223 memmove(ret, mb, mb_len * sizeof(wchar_t)); in php_win32_ioutil_conv_any_to_w()
224 ret[mb_len] = L'\0'; in php_win32_ioutil_conv_any_to_w()
240 while (src < mb + mb_len) { in php_win32_ioutil_conv_any_to_w()
[all …]

Completed in 11 milliseconds