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

Function CgiEscapeBufLen

library/cpp/string_utils/quote/quote.h:66–68  ·  view source on GitHub ↗

BufLen: how much characters you should allocate for 'char* to' buffers.

Source from the content-addressed store, hash-verified

64
65//*BufLen: how much characters you should allocate for 'char* to' buffers.
66constexpr size_t CgiEscapeBufLen(const size_t len) noexcept {
67 return 3 * len + 1;
68}
69
70constexpr size_t CgiUnescapeBufLen(const size_t len) noexcept {
71 return len + 1;

Callers 7

CGIEscapeFunction · 0.85
CGIEscapeRetFunction · 0.85
quote.cppFile · 0.85
QuoteFunction · 0.85
UrlEscapeFunction · 0.85
UrlEscapeRetFunction · 0.85
PrintSizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected