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

Method Basename

tools/rescompressor/main.cpp:68–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 }
67
68 TString Basename(TStringBuf origin) {
69 TString result(origin);
70 if (result.rfind('/') != TString::npos) {
71 result = result.substr(result.rfind('/') + 1);
72 } else if (result.rfind('\\') != TString::npos) {
73 result = result.substr(result.rfind('\\') + 1);
74 }
75 return result;
76 }
77};
78
79static TString CompressPath(const TVector<TStringBuf>& replacements, TStringBuf in) {

Callers 1

mainFunction · 0.45

Calls 2

rfindMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected