Lines Matching refs:result_pos
159 WCHAR *result, *result_pos; in search_path_join_test() local
189 result = result_pos = (WCHAR*)uv__malloc(sizeof(WCHAR) * in search_path_join_test()
193 wcsncpy(result_pos, cwd, cwd_len); in search_path_join_test()
194 result_pos += cwd_len; in search_path_join_test()
197 if (cwd_len && wcsrchr(L"\\/:", result_pos[-1]) == NULL) { in search_path_join_test()
198 result_pos[0] = L'\\'; in search_path_join_test()
199 result_pos++; 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()
208 result_pos[0] = L'\\'; in search_path_join_test()
209 result_pos++; in search_path_join_test()
213 wcsncpy(result_pos, name, name_len); in search_path_join_test()
214 result_pos += name_len; in search_path_join_test()
218 if (name_len && result_pos[-1] != '.') { 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, ext, ext_len); in search_path_join_test()
225 result_pos += ext_len; in search_path_join_test()
229 result_pos[0] = L'\0'; in search_path_join_test()