Lines Matching refs:dir_len
152 size_t dir_len, in search_path_join_test() argument
161 if (dir_len > 2 && in search_path_join_test()
166 } else if (dir_len >= 1 && (dir[0] == L'/' || dir[0] == L'\\')) { in search_path_join_test()
169 } else if (dir_len >= 2 && dir[1] == L':' && in search_path_join_test()
170 (dir_len < 3 || (dir[2] != L'/' && dir[2] != L'\\'))) { in search_path_join_test()
179 dir_len -= 2; in search_path_join_test()
181 } else if (dir_len > 2 && dir[1] == L':') { in search_path_join_test()
190 (cwd_len + 1 + dir_len + 1 + name_len + 1 + ext_len + 1)); in search_path_join_test()
203 wcsncpy(result_pos, dir, dir_len); in search_path_join_test()
204 result_pos += dir_len; in search_path_join_test()
207 if (dir_len && wcsrchr(L"\\/:", result_pos[-1]) == NULL) { in search_path_join_test()
247 size_t dir_len, in path_search_walk_ext() argument
257 result = search_path_join_test(dir, dir_len, in path_search_walk_ext()
267 result = search_path_join_test(dir, dir_len, in path_search_walk_ext()
276 result = search_path_join_test(dir, dir_len, in path_search_walk_ext()
341 size_t dir_len; in search_path() local
421 dir_len = dir_end - dir_start; in search_path()
426 --dir_len; in search_path()
429 if (dir_path[dir_len - 1] == '"' || dir_path[dir_len - 1] == '\'') { in search_path()
430 --dir_len; in search_path()
433 result = path_search_walk_ext(dir_path, dir_len, in search_path()