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

Function AppendWindowsPortableSearchPaths

src/Config.cpp:259–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259void AppendWindowsPortableSearchPaths(std::vector<std::string>& paths,
260 const std::string& modulePath) {
261 const std::string parent = GetParentDirectory(modulePath);
262 if (parent.empty()) {
263 return;
264 }
265 paths.push_back(parent);
266 paths.push_back(parent + "../share/opencc");
267}
268#endif
269
270class ConfigInternal {

Callers 1

NewFromFileMethod · 0.85

Calls 3

GetParentDirectoryFunction · 0.70
emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected