MCPcopy Create free account
hub / github.com/PDAL/PDAL / fromString

Function fromString

filters/private/expr/ConditionalExpression.hpp:25–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24template<>
25inline StatusWithReason fromString(const std::string& from,
26 pdal::expr::ConditionalExpression& expr)
27{
28 std::string error;
29
30 expr::Lexer lexer(from);
31 expr::ConditionalParser parser(lexer);
32 if (!parser.expression(expr))
33 return { -1, parser.error() };
34 if (!parser.checkEnd())
35 return { -1, "Found '" + from.substr(lexer.pos()) + "' following valid expression." };
36 return {};
37}
38
39} // namespace Util
40

Callers

nothing calls this directly

Calls 4

checkEndMethod · 0.80
expressionMethod · 0.45
errorMethod · 0.45
posMethod · 0.45

Tested by

no test coverage detected