MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / NormalizePathString

Function NormalizePathString

src/ConfigTest.cpp:48–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46std::string PathString(const fs::path& path) { return path.u8string(); }
47
48std::string NormalizePathString(std::string path) {
49 for (char& ch : path) {
50 if (ch == '\\') {
51 ch = '/';
52 }
53 }
54 return path;
55}
56
57fs::path MakeTempDir(const std::string& name) {
58#if defined(_WIN32) || defined(_WIN64)

Callers 1

TEST_FFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected