MCPcopy Create free account
hub / github.com/apache/trafficserver / unescape

Function unescape

plugins/esi/common/Utils.h:105–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 void parseKeyValueConfig(const std::list<std::string> &lines, KeyValueMap &kvMap, HeaderValueList &allowlistCookies);
104
105 inline std::string
106 unescape(const char *str, int len = -1)
107 {
108 std::string retval("");
109 if (str) {
110 for (int i = 0; (((len == -1) && (str[i] != '\0')) || (i < len)); ++i) {
111 if (str[i] != '\\') {
112 retval += str[i];
113 }
114 }
115 }
116 return retval;
117 }
118}; // namespace Utils
119}; // namespace EsiLib

Callers 3

utils_test.ccFile · 0.50
issue_referenceMethod · 0.50
issue_referenceMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected