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

Function ParentDir

plugins/jieba/src/JiebaSegmentation.cpp:82–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80#endif
81
82std::string ParentDir(const std::string& path) {
83 std::string::size_type pos = path.find_last_of("/\\");
84 if (pos == std::string::npos) {
85 return "";
86 }
87 return path.substr(0, pos + 1);
88}
89
90bool IsRegularFile(const std::string& path) {
91#if defined(_WIN32) || defined(_WIN64)

Callers 1

ResolveAuxPathFunction · 0.70

Calls 1

substrMethod · 0.45

Tested by

no test coverage detected