MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / toPathString

Function toPathString

src/gui2/tools/mkromfs.cc:29–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 1

mainFunction · 0.85

Calls 1

replaceFunction · 0.85

Tested by

no test coverage detected