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

Function parse_line

src/proxy/http2/test_HPACK.cc:107–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void
108parse_line(string &line, int offset, string &name, string &value)
109{
110 int son = offset + 1; // start of name
111 int eon = line.find("\": \"", son); // end of name
112 int sov = eon + 4; // start of value
113 int eov = line.find_last_of('"'); // end of value
114 name = line.substr(son, eon - son);
115 value = line.substr(sov, eov - sov);
116 unescape(value);
117}
118
119void
120print_difference(const char *a_str, const int a_str_len, const char *b_str, const int b_str_len)

Callers 3

test_decodingFunction · 0.85
test_encodingFunction · 0.85
ParserTestMethod · 0.85

Calls 3

unescapeFunction · 0.70
findMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected