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

Function CGIEscapeRet

library/cpp/string_utils/quote/quote.cpp:163–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163TString CGIEscapeRet(const TStringBuf url) {
164 TString to;
165 to.ReserveAndResize(CgiEscapeBufLen(url.size()));
166 to.resize(CGIEscape(to.begin(), url.data(), url.size()) - to.data());
167 return to;
168}
169
170TString& AppendCgiEscaped(const TStringBuf value, TString& to) {
171 const size_t origLength = to.length();

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 6

CgiEscapeBufLenFunction · 0.85
CGIEscapeFunction · 0.70
sizeMethod · 0.45
resizeMethod · 0.45
beginMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected