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

Function UrlEscapeRet

library/cpp/string_utils/quote/quote.cpp:302–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302TString UrlEscapeRet(const TStringBuf from, bool forceEscape) {
303 TString to;
304 to.ReserveAndResize(CgiEscapeBufLen(from.size()));
305 to.resize(UrlEscape(to.begin(), from, forceEscape) - to.data());
306 return to;
307}

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 6

CgiEscapeBufLenFunction · 0.85
UrlEscapeFunction · 0.85
sizeMethod · 0.45
resizeMethod · 0.45
beginMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected