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

Method iterNext

src/tscore/Tokenizer.cc:309–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309const char *
310Tokenizer::iterNext(tok_iter_state *state)
311{
312 tok_node *node = state->node;
313 ;
314 int index = state->index;
315
316 index++;
317 if (index >= TOK_NODE_ELEMENTS) {
318 node = node->next;
319 if (node == nullptr) {
320 return nullptr;
321 } else {
322 index = 0;
323 }
324 }
325
326 if (node->el[index] != nullptr) {
327 state->node = node;
328 state->index = index;
329 return node->el[index];
330 } else {
331 return nullptr;
332 }
333}
334
335void
336Tokenizer::Print() const

Callers 4

BuildTableFromStringMethod · 0.80
BuildListFromStringMethod · 0.80
RecConfigFileParseFunction · 0.80
BuildTableFromStringMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected