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

Function DirName

src/PluginSegmentation.cpp:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43namespace {
44
45std::string DirName(const std::string& path) {
46 const std::string::size_type pos = path.find_last_of("/\\");
47 if (pos == std::string::npos) {
48 return "";
49 }
50 return path.substr(0, pos);
51}
52
53std::string JoinPath(const std::string& left, const std::string& right) {
54 if (left.empty()) {

Callers 1

Calls 1

substrMethod · 0.45

Tested by

no test coverage detected