Lines Matching refs:mb_len
163 size_t mb_len; in php_win32_ioutil_conv_any_to_w() local
165 mb = php_win32_cp_conv_any_to_w(in, in_len, &mb_len); in php_win32_ioutil_conv_any_to_w()
171 if (mb_len >= _MAX_PATH) { in php_win32_ioutil_conv_any_to_w()
174 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()
180 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()
186 if (new_mb_len > mb_len) { in php_win32_ioutil_conv_any_to_w()
194 mb_len = new_mb_len; in php_win32_ioutil_conv_any_to_w()
197 …_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()
198 memmove(ret, mb, mb_len * sizeof(wchar_t)); in php_win32_ioutil_conv_any_to_w()
199 ret[mb_len] = L'\0'; in php_win32_ioutil_conv_any_to_w()
202 memmove(ret+PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW, mb, mb_len * sizeof(wchar_t)); in php_win32_ioutil_conv_any_to_w()
203 ret[mb_len + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW] = L'\0'; in php_win32_ioutil_conv_any_to_w()
205 mb_len += PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW; in php_win32_ioutil_conv_any_to_w()
214 *out_len = mb_len; in php_win32_ioutil_conv_any_to_w()