MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlXPathCompRelationalExpr

Function xmlXPathCompRelationalExpr

ThirdParty/libxml2/vtklibxml2/xpath.c:9815–9836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9813 */
9814
9815static void
9816xmlXPathCompRelationalExpr(xmlXPathParserContextPtr ctxt) {
9817 xmlXPathCompAdditiveExpr(ctxt);
9818 CHECK_ERROR;
9819 SKIP_BLANKS;
9820 while ((CUR == '<') || (CUR == '>')) {
9821 int inf, strict;
9822 int op1 = ctxt->comp->last;
9823
9824 if (CUR == '<') inf = 1;
9825 else inf = 0;
9826 if (NXT(1) == '=') strict = 0;
9827 else strict = 1;
9828 NEXT;
9829 if (!strict) NEXT;
9830 SKIP_BLANKS;
9831 xmlXPathCompAdditiveExpr(ctxt);
9832 CHECK_ERROR;
9833 PUSH_BINARY_EXPR(XPATH_OP_CMP, op1, ctxt->comp->last, inf, strict);
9834 SKIP_BLANKS;
9835 }
9836}
9837
9838/**
9839 * xmlXPathCompEqualityExpr:

Callers 1

xmlXPathCompEqualityExprFunction · 0.85

Calls 1

xmlXPathCompAdditiveExprFunction · 0.85

Tested by

no test coverage detected