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

Method DoReconstruct

util/folder/pathsplit.cpp:86–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86TString TPathSplitStore::DoReconstruct(const TStringBuf slash) const {
87 TString r;
88
89 r.reserve(ToReserve(*this));
90
91 if (IsAbsolute) {
92 r.AppendNoAlias(Drive);
93 r.AppendNoAlias(slash);
94 }
95
96 for (auto i = begin(); i != end(); ++i) {
97 if (i != begin()) {
98 r.AppendNoAlias(slash);
99 }
100
101 r.AppendNoAlias(*i);
102 }
103
104 return r;
105}
106
107void TPathSplitStore::AppendComponent(const TStringBuf comp) {
108 if (!comp || comp == TStringBuf(".")) {

Callers

nothing calls this directly

Calls 5

ToReserveFunction · 0.85
AppendNoAliasMethod · 0.80
beginFunction · 0.50
endFunction · 0.50
reserveMethod · 0.45

Tested by

no test coverage detected