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

Method fileExtension

KittyMemoryEx/KittyUtils.cpp:139–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 }
138
139 std::string Path::fileExtension(const std::string &filePath)
140 {
141 std::string ext;
142 const size_t last_slash_idx = filePath.find_last_of(".");
143 if (std::string::npos != last_slash_idx)
144 ext = filePath.substr(last_slash_idx + 1);
145 return ext;
146 }
147
148 bool String::startsWith(const std::string &str, const std::string &prefix, bool sensitive)
149 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected