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

Function JoinPath

src/PluginSegmentation.cpp:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53std::string JoinPath(const std::string& left, const std::string& right) {
54 if (left.empty()) {
55 return right;
56 }
57 const char last = left.back();
58 if (last == '/' || last == '\\') {
59 return left + right;
60 }
61 return left + "/" + right;
62}
63
64void AppendUnique(std::vector<std::string>& values, const std::string& value) {
65 if (value.empty()) {

Callers 2

LoadByTypeMethod · 0.70
BuildSearchDirsMethod · 0.70

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected