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.c301 int mb_len = php_mblen(str + x, (l - x)); in php_escape_shell_cmd() local
304 if (mb_len < 0) { in php_escape_shell_cmd()
306 } else if (mb_len > 1) { in php_escape_shell_cmd()
307 memcpy(ZSTR_VAL(cmd) + y, str + x, mb_len); in php_escape_shell_cmd()
308 y += mb_len; in php_escape_shell_cmd()
309 x += mb_len - 1; in php_escape_shell_cmd()
410 int mb_len = php_mblen(str + x, (l - x)); in php_escape_shell_arg() local
413 if (mb_len < 0) { in php_escape_shell_arg()
415 } else if (mb_len > 1) { in php_escape_shell_arg()
417 y += mb_len; in php_escape_shell_arg()
[all …]
/php-src/win32/
H A Dioutil.h183 size_t mb_len; in php_win32_ioutil_conv_any_to_w() local
185 mb = php_win32_cp_conv_any_to_w(in, in_len, &mb_len); in php_win32_ioutil_conv_any_to_w()
191 if (mb_len >= _MAX_PATH) { in php_win32_ioutil_conv_any_to_w()
206 if (new_mb_len > mb_len) { in php_win32_ioutil_conv_any_to_w()
214 mb_len = new_mb_len; in php_win32_ioutil_conv_any_to_w()
217 …_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()
218 memmove(ret, mb, mb_len * sizeof(wchar_t)); in php_win32_ioutil_conv_any_to_w()
219 ret[mb_len] = L'\0'; in php_win32_ioutil_conv_any_to_w()
223 while (src < mb + mb_len) { in php_win32_ioutil_conv_any_to_w()
233 mb_len += PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW; in php_win32_ioutil_conv_any_to_w()
[all …]

Completed in 10 milliseconds