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

Function xmlXPathCompAndExpr

ThirdParty/libxml2/vtklibxml2/xpath.c:9885–9899  ·  view source on GitHub ↗

* xmlXPathCompAndExpr: * @ctxt: the XPath Parser context * * [22] AndExpr ::= EqualityExpr * | AndExpr 'and' EqualityExpr * * Compile an AND expression. * */

Source from the content-addressed store, hash-verified

9883 *
9884 */
9885static void
9886xmlXPathCompAndExpr(xmlXPathParserContextPtr ctxt) {
9887 xmlXPathCompEqualityExpr(ctxt);
9888 CHECK_ERROR;
9889 SKIP_BLANKS;
9890 while ((CUR == 'a') && (NXT(1) == 'n') && (NXT(2) == 'd')) {
9891 int op1 = ctxt->comp->last;
9892 SKIP(3);
9893 SKIP_BLANKS;
9894 xmlXPathCompEqualityExpr(ctxt);
9895 CHECK_ERROR;
9896 PUSH_BINARY_EXPR(XPATH_OP_AND, op1, ctxt->comp->last, 0, 0);
9897 SKIP_BLANKS;
9898 }
9899}
9900
9901/**
9902 * xmlXPathCompileExpr:

Callers 1

xmlXPathCompileExprFunction · 0.85

Calls 1

xmlXPathCompEqualityExprFunction · 0.85

Tested by

no test coverage detected