MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / stripFilePath

Method stripFilePath

src/utils/Utils.cpp:328–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328std::string Utils::stripFilePath(const std::string& file)
329{
330 if (file.find_last_of("\\/") == std::string::npos)
331 return file;
332
333 return file.substr(file.find_last_of("\\/") + 1);
334}
335
336std::string Utils::stripJsonComments(const std::string& json, const std::string& commentStart)
337{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected