Lines Matching refs:ctxt
70 #define xmlXPathSetError(ctxt, err) \ argument
71 { xmlXPatherror((ctxt), __FILE__, __LINE__, (err)); \
72 if ((ctxt) != NULL) (ctxt)->error = (err); }
80 #define xmlXPathSetArityError(ctxt) \ argument
81 xmlXPathSetError((ctxt), XPATH_INVALID_ARITY)
89 #define xmlXPathSetTypeError(ctxt) \ argument
90 xmlXPathSetError((ctxt), XPATH_INVALID_TYPE)
100 #define xmlXPathGetError(ctxt) ((ctxt)->error) argument
110 #define xmlXPathCheckError(ctxt) ((ctxt)->error != XPATH_EXPRESSION_OK) argument
120 #define xmlXPathGetDocument(ctxt) ((ctxt)->context->doc) argument
130 #define xmlXPathGetContextNode(ctxt) ((ctxt)->context->node) argument
133 xmlXPathPopBoolean (xmlXPathParserContextPtr ctxt);
135 xmlXPathPopNumber (xmlXPathParserContextPtr ctxt);
137 xmlXPathPopString (xmlXPathParserContextPtr ctxt);
139 xmlXPathPopNodeSet (xmlXPathParserContextPtr ctxt);
141 xmlXPathPopExternal (xmlXPathParserContextPtr ctxt);
150 #define xmlXPathReturnBoolean(ctxt, val) \ argument
151 valuePush((ctxt), xmlXPathNewBoolean(val))
159 #define xmlXPathReturnTrue(ctxt) xmlXPathReturnBoolean((ctxt), 1) argument
167 #define xmlXPathReturnFalse(ctxt) xmlXPathReturnBoolean((ctxt), 0) argument
176 #define xmlXPathReturnNumber(ctxt, val) \ argument
177 valuePush((ctxt), xmlXPathNewFloat(val))
186 #define xmlXPathReturnString(ctxt, str) \ argument
187 valuePush((ctxt), xmlXPathWrapString(str))
195 #define xmlXPathReturnEmptyString(ctxt) \ argument
196 valuePush((ctxt), xmlXPathNewCString(""))
205 #define xmlXPathReturnNodeSet(ctxt, ns) \ argument
206 valuePush((ctxt), xmlXPathWrapNodeSet(ns))
214 #define xmlXPathReturnEmptyNodeSet(ctxt) \ argument
215 valuePush((ctxt), xmlXPathNewNodeSet(NULL))
224 #define xmlXPathReturnExternal(ctxt, val) \ argument
225 valuePush((ctxt), xmlXPathWrapExternal(val))
236 #define xmlXPathStackIsNodeSet(ctxt) \ argument
237 (((ctxt)->value != NULL) \
238 && (((ctxt)->value->type == XPATH_NODESET) \
239 || ((ctxt)->value->type == XPATH_XSLT_TREE)))
251 #define xmlXPathStackIsExternal(ctxt) \ argument
252 ((ctxt->value != NULL) && (ctxt->value->type == XPATH_USERS))
269 if (ctxt->error != XPATH_EXPRESSION_OK) return
277 if (ctxt->error != XPATH_EXPRESSION_OK) return(0)
286 { xmlXPathErr(ctxt, X); return; }
295 { xmlXPathErr(ctxt, X); return(0); }
305 if ((ctxt->value == NULL) || (ctxt->value->type != typeval)) \
316 if ((ctxt->value == NULL) || (ctxt->value->type != typeval)) \
326 if (ctxt == NULL) return; \
329 if (ctxt->valueNr < ctxt->valueFrame + (x)) \
338 if ((ctxt->value != NULL) && (ctxt->value->type != XPATH_STRING)) \
339 xmlXPathStringFunction(ctxt, 1);
347 if ((ctxt->value != NULL) && (ctxt->value->type != XPATH_NUMBER)) \
348 xmlXPathNumberFunction(ctxt, 1);
356 if ((ctxt->value != NULL) && (ctxt->value->type != XPATH_BOOLEAN)) \
357 xmlXPathBooleanFunction(ctxt, 1);
364 xmlXPathRegisterVariableLookup (xmlXPathContextPtr ctxt,
373 xmlXPathRegisterFuncLookup (xmlXPathContextPtr ctxt,
381 xmlXPatherror (xmlXPathParserContextPtr ctxt,
387 xmlXPathErr (xmlXPathParserContextPtr ctxt,
454 xmlXPathRegisterNs (xmlXPathContextPtr ctxt,
458 xmlXPathNsLookup (xmlXPathContextPtr ctxt,
461 xmlXPathRegisteredNsCleanup (xmlXPathContextPtr ctxt);
464 xmlXPathRegisterFunc (xmlXPathContextPtr ctxt,
468 xmlXPathRegisterFuncNS (xmlXPathContextPtr ctxt,
473 xmlXPathRegisterVariable (xmlXPathContextPtr ctxt,
477 xmlXPathRegisterVariableNS (xmlXPathContextPtr ctxt,
482 xmlXPathFunctionLookup (xmlXPathContextPtr ctxt,
485 xmlXPathFunctionLookupNS (xmlXPathContextPtr ctxt,
489 xmlXPathRegisteredFuncsCleanup (xmlXPathContextPtr ctxt);
491 xmlXPathVariableLookup (xmlXPathContextPtr ctxt,
494 xmlXPathVariableLookupNS (xmlXPathContextPtr ctxt,
498 xmlXPathRegisteredVariablesCleanup(xmlXPathContextPtr ctxt);
505 xmlXPathContextPtr ctxt);
507 xmlXPathFreeParserContext (xmlXPathParserContextPtr ctxt);
511 valuePop (xmlXPathParserContextPtr ctxt);
513 valuePush (xmlXPathParserContextPtr ctxt,
546 xmlXPathRoot (xmlXPathParserContextPtr ctxt);
548 xmlXPathEvalExpr (xmlXPathParserContextPtr ctxt);
550 xmlXPathParseName (xmlXPathParserContextPtr ctxt);
552 xmlXPathParseNCName (xmlXPathParserContextPtr ctxt);
560 xmlXPathEvaluatePredicateResult (xmlXPathParserContextPtr ctxt,
563 xmlXPathRegisterAllFunctions (xmlXPathContextPtr ctxt);
580 XMLPUBFUN int XMLCALL xmlXPathEqualValues(xmlXPathParserContextPtr ctxt);
581 XMLPUBFUN int XMLCALL xmlXPathNotEqualValues(xmlXPathParserContextPtr ctxt);
582 XMLPUBFUN int XMLCALL xmlXPathCompareValues(xmlXPathParserContextPtr ctxt, int inf, int strict);
583 XMLPUBFUN void XMLCALL xmlXPathValueFlipSign(xmlXPathParserContextPtr ctxt);
584 XMLPUBFUN void XMLCALL xmlXPathAddValues(xmlXPathParserContextPtr ctxt);
585 XMLPUBFUN void XMLCALL xmlXPathSubValues(xmlXPathParserContextPtr ctxt);
586 XMLPUBFUN void XMLCALL xmlXPathMultValues(xmlXPathParserContextPtr ctxt);
587 XMLPUBFUN void XMLCALL xmlXPathDivValues(xmlXPathParserContextPtr ctxt);
588 XMLPUBFUN void XMLCALL xmlXPathModValues(xmlXPathParserContextPtr ctxt);
595 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextSelf(xmlXPathParserContextPtr ctxt,
597 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextChild(xmlXPathParserContextPtr ctxt,
599 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextDescendant(xmlXPathParserContextPtr ctxt,
601 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextDescendantOrSelf(xmlXPathParserContextPtr ctxt,
603 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextParent(xmlXPathParserContextPtr ctxt,
605 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextAncestorOrSelf(xmlXPathParserContextPtr ctxt,
607 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextFollowingSibling(xmlXPathParserContextPtr ctxt,
609 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextFollowing(xmlXPathParserContextPtr ctxt,
611 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextNamespace(xmlXPathParserContextPtr ctxt,
613 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextAttribute(xmlXPathParserContextPtr ctxt,
615 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextPreceding(xmlXPathParserContextPtr ctxt,
617 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextAncestor(xmlXPathParserContextPtr ctxt,
619 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextPrecedingSibling(xmlXPathParserContextPtr ctxt,
624 XMLPUBFUN void XMLCALL xmlXPathLastFunction(xmlXPathParserContextPtr ctxt, int nargs);
625 XMLPUBFUN void XMLCALL xmlXPathPositionFunction(xmlXPathParserContextPtr ctxt, int nargs);
626 XMLPUBFUN void XMLCALL xmlXPathCountFunction(xmlXPathParserContextPtr ctxt, int nargs);
627 XMLPUBFUN void XMLCALL xmlXPathIdFunction(xmlXPathParserContextPtr ctxt, int nargs);
628 XMLPUBFUN void XMLCALL xmlXPathLocalNameFunction(xmlXPathParserContextPtr ctxt, int nargs);
629 XMLPUBFUN void XMLCALL xmlXPathNamespaceURIFunction(xmlXPathParserContextPtr ctxt, int nargs);
630 XMLPUBFUN void XMLCALL xmlXPathStringFunction(xmlXPathParserContextPtr ctxt, int nargs);
631 XMLPUBFUN void XMLCALL xmlXPathStringLengthFunction(xmlXPathParserContextPtr ctxt, int nargs);
632 XMLPUBFUN void XMLCALL xmlXPathConcatFunction(xmlXPathParserContextPtr ctxt, int nargs);
633 XMLPUBFUN void XMLCALL xmlXPathContainsFunction(xmlXPathParserContextPtr ctxt, int nargs);
634 XMLPUBFUN void XMLCALL xmlXPathStartsWithFunction(xmlXPathParserContextPtr ctxt, int nargs);
635 XMLPUBFUN void XMLCALL xmlXPathSubstringFunction(xmlXPathParserContextPtr ctxt, int nargs);
636 XMLPUBFUN void XMLCALL xmlXPathSubstringBeforeFunction(xmlXPathParserContextPtr ctxt, int nargs);
637 XMLPUBFUN void XMLCALL xmlXPathSubstringAfterFunction(xmlXPathParserContextPtr ctxt, int nargs);
638 XMLPUBFUN void XMLCALL xmlXPathNormalizeFunction(xmlXPathParserContextPtr ctxt, int nargs);
639 XMLPUBFUN void XMLCALL xmlXPathTranslateFunction(xmlXPathParserContextPtr ctxt, int nargs);
640 XMLPUBFUN void XMLCALL xmlXPathNotFunction(xmlXPathParserContextPtr ctxt, int nargs);
641 XMLPUBFUN void XMLCALL xmlXPathTrueFunction(xmlXPathParserContextPtr ctxt, int nargs);
642 XMLPUBFUN void XMLCALL xmlXPathFalseFunction(xmlXPathParserContextPtr ctxt, int nargs);
643 XMLPUBFUN void XMLCALL xmlXPathLangFunction(xmlXPathParserContextPtr ctxt, int nargs);
644 XMLPUBFUN void XMLCALL xmlXPathNumberFunction(xmlXPathParserContextPtr ctxt, int nargs);
645 XMLPUBFUN void XMLCALL xmlXPathSumFunction(xmlXPathParserContextPtr ctxt, int nargs);
646 XMLPUBFUN void XMLCALL xmlXPathFloorFunction(xmlXPathParserContextPtr ctxt, int nargs);
647 XMLPUBFUN void XMLCALL xmlXPathCeilingFunction(xmlXPathParserContextPtr ctxt, int nargs);
648 XMLPUBFUN void XMLCALL xmlXPathRoundFunction(xmlXPathParserContextPtr ctxt, int nargs);
649 XMLPUBFUN void XMLCALL xmlXPathBooleanFunction(xmlXPathParserContextPtr ctxt, int nargs);