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

Function xmlXPathCompLocationPath

ThirdParty/libxml2/vtklibxml2/xpath.c:10421–10446  ·  view source on GitHub ↗

* xmlXPathCompLocationPath: * @ctxt: the XPath Parser context * * [1] LocationPath ::= RelativeLocationPath * | AbsoluteLocationPath * [2] AbsoluteLocationPath ::= '/' RelativeLocationPath? * | AbbreviatedAbsoluteLocationPath * [10] AbbreviatedAbsoluteLocationPath ::= * '//' RelativeLocationPath * * Compile a

Source from the content-addressed store, hash-verified

10419 * select all para descendants of div children.
10420 */
10421static void
10422xmlXPathCompLocationPath(xmlXPathParserContextPtr ctxt) {
10423 SKIP_BLANKS;
10424 if (CUR != '/') {
10425 xmlXPathCompRelativeLocationPath(ctxt);
10426 } else {
10427 while (CUR == '/') {
10428 if ((CUR == '/') && (NXT(1) == '/')) {
10429 SKIP(2);
10430 SKIP_BLANKS;
10431 PUSH_LONG_EXPR(XPATH_OP_COLLECT, AXIS_DESCENDANT_OR_SELF,
10432 NODE_TEST_TYPE, NODE_TYPE_NODE, NULL, NULL);
10433 xmlXPathCompRelativeLocationPath(ctxt);
10434 } else if (CUR == '/') {
10435 NEXT;
10436 SKIP_BLANKS;
10437 if ((CUR != 0) &&
10438 ((IS_ASCII_LETTER(CUR)) || (CUR >= 0x80) ||
10439 (CUR == '_') || (CUR == '.') ||
10440 (CUR == '@') || (CUR == '*')))
10441 xmlXPathCompRelativeLocationPath(ctxt);
10442 }
10443 CHECK_ERROR;
10444 }
10445 }
10446}
10447
10448/************************************************************************
10449 * *

Callers 1

xmlXPathCompPathExprFunction · 0.85

Calls 1

Tested by

no test coverage detected