Lines Matching refs:result_pos
170 WCHAR *result, *result_pos; in search_path_join_test() local
200 result = result_pos = (WCHAR*)uv__malloc(sizeof(WCHAR) * in search_path_join_test()
204 wcsncpy(result_pos, cwd, cwd_len); in search_path_join_test()
205 result_pos += cwd_len; in search_path_join_test()
208 if (cwd_len && wcsrchr(L"\\/:", result_pos[-1]) == NULL) { in search_path_join_test()
209 result_pos[0] = L'\\'; in search_path_join_test()
210 result_pos++; in search_path_join_test()
214 wcsncpy(result_pos, dir, dir_len); in search_path_join_test()
215 result_pos += dir_len; in search_path_join_test()
218 if (dir_len && wcsrchr(L"\\/:", result_pos[-1]) == NULL) { in search_path_join_test()
219 result_pos[0] = L'\\'; in search_path_join_test()
220 result_pos++; in search_path_join_test()
224 wcsncpy(result_pos, name, name_len); in search_path_join_test()
225 result_pos += name_len; in search_path_join_test()
229 if (name_len && result_pos[-1] != '.') { in search_path_join_test()
230 result_pos[0] = L'.'; in search_path_join_test()
231 result_pos++; in search_path_join_test()
235 wcsncpy(result_pos, ext, ext_len); in search_path_join_test()
236 result_pos += ext_len; in search_path_join_test()
240 result_pos[0] = L'\0'; in search_path_join_test()