Lines Matching refs:mb_len
161 size_t mb_len; in php_win32_ioutil_conv_any_to_w() local
163 mb = php_win32_cp_conv_any_to_w(in, in_len, &mb_len); in php_win32_ioutil_conv_any_to_w()
169 if (mb_len >= _MAX_PATH) { in php_win32_ioutil_conv_any_to_w()
172 ret = (wchar_t *) malloc((mb_len + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW + 1) * sizeof(wchar_t)); in php_win32_ioutil_conv_any_to_w()
178 if (PHP_WIN32_IOUTIL_NORM_FAIL == php_win32_ioutil_normalize_path_w(&mb, mb_len, &new_mb_len)) { in php_win32_ioutil_conv_any_to_w()
184 if (new_mb_len > mb_len) { in php_win32_ioutil_conv_any_to_w()
192 mb_len = new_mb_len; in php_win32_ioutil_conv_any_to_w()
195 …_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()
196 memmove(ret, mb, mb_len * sizeof(wchar_t)); in php_win32_ioutil_conv_any_to_w()
197 ret[mb_len] = L'\0'; in php_win32_ioutil_conv_any_to_w()
200 memmove(ret+PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW, mb, mb_len * sizeof(wchar_t)); in php_win32_ioutil_conv_any_to_w()
201 ret[mb_len + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW] = L'\0'; in php_win32_ioutil_conv_any_to_w()
203 mb_len += PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW; in php_win32_ioutil_conv_any_to_w()
212 *out_len = mb_len; in php_win32_ioutil_conv_any_to_w()