| 69 | } |
| 70 | |
| 71 | std::string Path::toNativeSeparators(std::string path) |
| 72 | { |
| 73 | #if defined(_WIN32) |
| 74 | constexpr char separ = '/'; |
| 75 | constexpr char native = '\\'; |
| 76 | #else |
| 77 | constexpr char separ = '\\'; |
| 78 | constexpr char native = '/'; |
| 79 | #endif |
| 80 | std::replace(path.begin(), path.end(), separ, native); |
| 81 | return path; |
| 82 | } |
| 83 | |
| 84 | std::string Path::fromNativeSeparators(std::string path) |
| 85 | { |