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

Method parseChunk

plugins/esi/lib/EsiParser.cc:96–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96bool
97EsiParser::parseChunk(const char *data, DocNodeList &node_list, int data_len /* = -1 */)
98{
99 if (!_setup(_data, _parse_start_pos, _orig_output_list_size, node_list, data, data_len)) {
100 return false;
101 }
102 if (!_parse(_data, _parse_start_pos, node_list)) {
103 TSError("[%s] Failed to parse chunk of size %d starting with [%.5s]...", __FUNCTION__, data_len, (data_len ? data : "(null)"));
104 return false;
105 }
106 return true;
107}
108
109bool
110EsiParser::_completeParse(string &data, int &parse_start_pos, size_t &orig_output_list_size, DocNodeList &node_list,

Callers 2

addParseDataMethod · 0.45
parser_test.ccFile · 0.45

Calls 1

TSErrorFunction · 0.50

Tested by

no test coverage detected