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

Method PrintSize

library/cpp/cgiparam/cgiparam.cpp:199–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199size_t TCgiParameters::PrintSize() const noexcept {
200 size_t res = size(); // for '&'
201
202 for (const auto& i : *this) {
203 res += CgiEscapeBufLen(i.first.size() + i.second.size()); // extra zero will be used for '='
204 }
205
206 return res;
207}
208
209TString TCgiParameters::QuotedPrint(const char* safe) const {
210 if (empty()) {

Callers

nothing calls this directly

Calls 3

CgiEscapeBufLenFunction · 0.85
sizeFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected