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

Method _evalSimpleExpr

plugins/esi/lib/Expression.cc:156–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156inline bool
157Expression::_evalSimpleExpr(const char *expr, int expr_len)
158{
159 const string &lhs = expand(expr, expr_len);
160 Dbg(dbg_ctl, "[%s] simple expression [%.*s] evaluated to [%.*s]", __FUNCTION__, expr_len, expr, int(lhs.size()), lhs.data());
161 double val;
162 return _convert(lhs, val) ? val : !lhs.empty();
163}
164
165bool
166Expression::evaluate(const char *expr, int expr_len /* = -1 */)

Callers

nothing calls this directly

Calls 4

expandFunction · 0.50
sizeMethod · 0.45
dataMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected