Function liberate::fs::to_win32_path
Defined in File path.h
Function Documentation
-
std::string liberate::fs::to_win32_path(std::string const &other)
Convert path names from POSIX-like to WIN32.
This mostly converts any unquoted backslash unto forward slash and vice versa. But it also converts
<drivename>:\
to/<drivename>/
and back.In the end, it’s this functionality that allows you to use POSIX-style path segments in URLs, and have them map to Windows paths on WIN32.
- Parameters
other – [in] POSIX-style input path.
- Returns
WIN32-style converted path.