MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / getFileName

Function getFileName

engine/source/meta_parser/parser/meta/meta_utils.cpp:130–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 }
129
130 std::string getFileName(std::string path)
131 {
132 if (path.size() < 1)
133 {
134 return std::string();
135 }
136 std::vector<std::string> result = split(path, "/");
137 if (result.size() < 1)
138 {
139 return std::string();
140 }
141 return result[result.size() - 1];
142 }
143
144 std::string getNameWithoutFirstM(std::string& name)
145 {

Callers 1

parseProjectMethod · 0.85

Calls 2

splitFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected