| 27 | } |
| 28 | |
| 29 | std::string toPathString(std::string string) |
| 30 | { |
| 31 | // Replace all backslashes with forward slashes on Windows |
| 32 | #if defined(_WIN32) |
| 33 | string = replace(string, "\\", "/"); |
| 34 | #endif |
| 35 | |
| 36 | // Replace all " with \" |
| 37 | string = replace(string, "\"", "\\\""); |
| 38 | |
| 39 | return string; |
| 40 | } |
| 41 | |
| 42 | std::vector<std::string> splitString( |
| 43 | std::string string, const std::string& delimiter) |