MCPcopy Create free account
hub / github.com/catboost/catboost / GetExtension

Function GetExtension

contrib/libs/flatbuffers/src/util.cpp:274–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274std::string GetExtension(const std::string &filepath) {
275 size_t i = filepath.find_last_of('.');
276 return i != std::string::npos ? filepath.substr(i + 1) : "";
277}
278
279std::string StripPath(const std::string &filepath) {
280 size_t i = filepath.find_last_of(PathSeparatorSet);

Callers 4

GetConformParserMethod · 0.70
GenerateCodeMethod · 0.70
CompileMethod · 0.70
GenerateMethod · 0.70

Calls 2

find_last_ofMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected