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

Function escape

src/proxy/http2/test_HPACK.cc:98–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98string
99escape(string &str)
100{
101 for (size_t p = str.find_first_of('"'); p != string::npos; p = str.find_first_of('"', p + 2)) {
102 str.insert(p, 1, '\\');
103 }
104 return str;
105}
106
107void
108parse_line(string &line, int offset, string &name, string &value)

Callers 1

test_encodingFunction · 0.70

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected