------------------------------------------------------------------------------------ */
| 38 | |
| 39 | /* ------------------------------------------------------------------------------------ */ |
| 40 | bool |
| 41 | Expr::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 | |
| 59 | Context::Context(std::shared_ptr<Config> const &cfg) : _cfg(cfg) |