MCPcopy Create free account
hub / github.com/MJx0/KittyMemoryEx / fileName

Method fileName

KittyMemoryEx/KittyUtils.cpp:121–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119#endif
120
121 std::string Path::fileName(const std::string &filePath)
122 {
123 std::string filename;
124 const size_t last_slash_idx = filePath.find_last_of("/\\");
125 if (std::string::npos != last_slash_idx)
126 filename = filePath.substr(last_slash_idx + 1);
127 return filename;
128 }
129
130 std::string Path::fileDirectory(const std::string &filePath)
131 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected