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

Function unescape

src/proxy/http2/test_HPACK.cc:88–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88string
89unescape(string &str)
90{
91 // It's not a real unescape. But it works enough.
92 for (size_t p = str.find_first_of('\\'); p != string::npos; p = str.find_first_of('\\', p)) {
93 str.erase(p, 1);
94 }
95 return str;
96}
97
98string
99escape(string &str)

Callers 1

parse_lineFunction · 0.70

Calls 1

eraseMethod · 0.45

Tested by

no test coverage detected