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

Function CompressPath

tools/rescompressor/main.cpp:79–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77};
78
79static TString CompressPath(const TVector<TStringBuf>& replacements, TStringBuf in) {
80 for (auto r : replacements) {
81 TStringBuf from, to;
82 r.Split('=', from, to);
83 if (in.StartsWith(from)) {
84 return Compress(TString(to) + in.SubStr(from.size()));
85 }
86 }
87
88 return Compress(in);
89}
90
91int main(int argc, char** argv) {
92 int ind = 0;

Callers 1

mainFunction · 0.85

Calls 5

CompressFunction · 0.50
SplitMethod · 0.45
StartsWithMethod · 0.45
SubStrMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected