Lines Matching refs:wpath
220 wstring wpath; in as_windows_path() local
221 if (!strings::utf8_to_wcs(path, &wpath)) { in as_windows_path()
224 if (has_longpath_prefix(wpath.c_str())) { in as_windows_path()
225 *result = wpath; in as_windows_path()
233 if (!is_path_absolute(wpath.c_str())) { in as_windows_path()
240 wpath = join_paths(wcwd.get(), wpath); in as_windows_path()
242 wpath = normalize(wpath); in as_windows_path()
243 if (!has_longpath_prefix(wpath.c_str())) { in as_windows_path()
248 wpath = wstring(L"\\\\?\\") + wpath; in as_windows_path()
250 *result = wpath; in as_windows_path()
258 wstring wpath; in open() local
259 if (!as_windows_path(path, &wpath)) { in open()
263 return ::_wopen(wpath.c_str(), flags, mode); in open()
271 wstring wpath; in mkdir() local
272 if (!as_windows_path(path, &wpath)) { in mkdir()
276 return ::_wmkdir(wpath.c_str()); in mkdir()
284 wstring wpath; in access() local
285 if (!as_windows_path(path, &wpath)) { in access()
289 return ::_waccess(wpath.c_str(), mode); in access()
297 wstring wpath; in chdir() local
298 if (!as_windows_path(path, &wpath)) { in chdir()
302 return ::_wchdir(wpath.c_str()); in chdir()
310 wstring wpath; in stat() local
311 if (!as_windows_path(path, &wpath)) { in stat()
315 return ::_wstat(wpath.c_str(), buffer); in stat()
327 wstring wpath; in fopen() local
328 if (!as_windows_path(path, &wpath)) { in fopen()
337 return ::_wfopen(wpath.c_str(), wmode.c_str()); in fopen()
360 wstring wpath; in testonly_utf8_to_winpath() local
361 return as_windows_path(path, &wpath) ? wpath : wstring(); in testonly_utf8_to_winpath()
372 wstring wpath; in ExpandWildcards() local
373 if (!as_windows_path(path.c_str(), &wpath)) { in ExpandWildcards()
380 HANDLE handle = ::FindFirstFileW(wpath.c_str(), &metadata); in ExpandWildcards()