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

Function _tokenize

plugins/header_rewrite/operators.cc:378–388  ·  view source on GitHub ↗

OperatorRMDestination

Source from the content-addressed store, hash-verified

376
377// OperatorRMDestination
378static std::vector<std::string_view>
379_tokenize(swoc::TextView text, char delimiter)
380{
381 std::vector<std::string_view> tokens;
382
383 while (text) {
384 tokens.push_back(text.take_prefix_at(delimiter));
385 }
386
387 return tokens;
388}
389
390void
391OperatorRMDestination::initialize(Parser &p)

Callers 2

initializeMethod · 0.85
execMethod · 0.85

Calls 2

take_prefix_atMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected