| 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 |
no outgoing calls
no test coverage detected