MCPcopy Create free account
hub / github.com/apache/trafficserver / operator()

Method operator()

plugins/experimental/txn_box/plugin/src/Context.cc:40–56  ·  view source on GitHub ↗

------------------------------------------------------------------------------------ */

Source from the content-addressed store, hash-verified

38
39/* ------------------------------------------------------------------------------------ */
40bool
41Expr::bwf_ex::operator()(std::string_view &literal, Extractor::Spec &spec)
42{
43 bool zret = false;
44 if (_iter->_type == swoc::bwf::Spec::LITERAL_TYPE) {
45 literal = _iter->_ext;
46 if (++_iter == _specs.end()) { // all done!
47 return zret;
48 }
49 }
50 if (_iter->_type != swoc::bwf::Spec::LITERAL_TYPE) {
51 spec = *_iter;
52 ++_iter;
53 zret = true;
54 }
55 return zret;
56}
57/* ------------------------------------------------------------------------------------ */
58
59Context::Context(std::shared_ptr<Config> const &cfg) : _cfg(cfg)

Callers

nothing calls this directly

Calls 7

render_transientMethod · 0.80
ArgPackClass · 0.50
endMethod · 0.45
formatMethod · 0.45
sizeMethod · 0.45
extractMethod · 0.45
commitMethod · 0.45

Tested by

no test coverage detected