Lines Matching refs:ctxt

36  * @ctxt:  an XPath parser context
41 #define xmlXPathSetError(ctxt, err) \
42 { xmlXPatherror((ctxt), __FILE__, __LINE__, (err)); \
43 if ((ctxt) != NULL) (ctxt)->error = (err); }
47 * @ctxt: an XPath parser context
51 #define xmlXPathSetArityError(ctxt) \
52 xmlXPathSetError((ctxt), XPATH_INVALID_ARITY)
56 * @ctxt: an XPath parser context
60 #define xmlXPathSetTypeError(ctxt) \
61 xmlXPathSetError((ctxt), XPATH_INVALID_TYPE)
65 * @ctxt: an XPath parser context
71 #define xmlXPathGetError(ctxt) ((ctxt)->error)
75 * @ctxt: an XPath parser context
81 #define xmlXPathCheckError(ctxt) ((ctxt)->error != XPATH_EXPRESSION_OK)
85 * @ctxt: an XPath parser context
91 #define xmlXPathGetDocument(ctxt) ((ctxt)->context->doc)
95 * @ctxt: an XPath parser context
101 #define xmlXPathGetContextNode(ctxt) ((ctxt)->context->node)
104 xmlXPathPopBoolean (xmlXPathParserContextPtr ctxt);
106 xmlXPathPopNumber (xmlXPathParserContextPtr ctxt);
108 xmlXPathPopString (xmlXPathParserContextPtr ctxt);
110 xmlXPathPopNodeSet (xmlXPathParserContextPtr ctxt);
112 xmlXPathPopExternal (xmlXPathParserContextPtr ctxt);
116 * @ctxt: an XPath parser context
121 #define xmlXPathReturnBoolean(ctxt, val) \
122 valuePush((ctxt), xmlXPathNewBoolean(val))
126 * @ctxt: an XPath parser context
130 #define xmlXPathReturnTrue(ctxt) xmlXPathReturnBoolean((ctxt), 1)
134 * @ctxt: an XPath parser context
138 #define xmlXPathReturnFalse(ctxt) xmlXPathReturnBoolean((ctxt), 0)
142 * @ctxt: an XPath parser context
147 #define xmlXPathReturnNumber(ctxt, val) \
148 valuePush((ctxt), xmlXPathNewFloat(val))
152 * @ctxt: an XPath parser context
157 #define xmlXPathReturnString(ctxt, str) \
158 valuePush((ctxt), xmlXPathWrapString(str))
162 * @ctxt: an XPath parser context
166 #define xmlXPathReturnEmptyString(ctxt) \
167 valuePush((ctxt), xmlXPathNewCString(""))
171 * @ctxt: an XPath parser context
176 #define xmlXPathReturnNodeSet(ctxt, ns) \
177 valuePush((ctxt), xmlXPathWrapNodeSet(ns))
181 * @ctxt: an XPath parser context
185 #define xmlXPathReturnEmptyNodeSet(ctxt) \
186 valuePush((ctxt), xmlXPathNewNodeSet(NULL))
190 * @ctxt: an XPath parser context
195 #define xmlXPathReturnExternal(ctxt, val) \
196 valuePush((ctxt), xmlXPathWrapExternal(val))
200 * @ctxt: an XPath parser context
207 #define xmlXPathStackIsNodeSet(ctxt) \
208 (((ctxt)->value != NULL) \
209 && (((ctxt)->value->type == XPATH_NODESET) \
210 || ((ctxt)->value->type == XPATH_XSLT_TREE)))
214 * @ctxt: an XPath parser context
222 #define xmlXPathStackIsExternal(ctxt) \
223 ((ctxt->value != NULL) && (ctxt->value->type == XPATH_USERS))
240 if (ctxt->error != XPATH_EXPRESSION_OK) return
248 if (ctxt->error != XPATH_EXPRESSION_OK) return(0)
257 { xmlXPathErr(ctxt, X); return; }
266 { xmlXPathErr(ctxt, X); return(0); }
276 if ((ctxt->value == NULL) || (ctxt->value->type != typeval)) \
287 if ((ctxt->value == NULL) || (ctxt->value->type != typeval)) \
297 if (ctxt == NULL) return; \
300 if (ctxt->valueNr < ctxt->valueFrame + (x)) \
309 if ((ctxt->value != NULL) && (ctxt->value->type != XPATH_STRING)) \
310 xmlXPathStringFunction(ctxt, 1);
318 if ((ctxt->value != NULL) && (ctxt->value->type != XPATH_NUMBER)) \
319 xmlXPathNumberFunction(ctxt, 1);
327 if ((ctxt->value != NULL) && (ctxt->value->type != XPATH_BOOLEAN)) \
328 xmlXPathBooleanFunction(ctxt, 1);
335 xmlXPathRegisterVariableLookup (xmlXPathContextPtr ctxt,
344 xmlXPathRegisterFuncLookup (xmlXPathContextPtr ctxt,
352 xmlXPatherror (xmlXPathParserContextPtr ctxt,
358 xmlXPathErr (xmlXPathParserContextPtr ctxt,
425 xmlXPathRegisterNs (xmlXPathContextPtr ctxt,
429 xmlXPathNsLookup (xmlXPathContextPtr ctxt,
432 xmlXPathRegisteredNsCleanup (xmlXPathContextPtr ctxt);
435 xmlXPathRegisterFunc (xmlXPathContextPtr ctxt,
439 xmlXPathRegisterFuncNS (xmlXPathContextPtr ctxt,
444 xmlXPathRegisterVariable (xmlXPathContextPtr ctxt,
448 xmlXPathRegisterVariableNS (xmlXPathContextPtr ctxt,
453 xmlXPathFunctionLookup (xmlXPathContextPtr ctxt,
456 xmlXPathFunctionLookupNS (xmlXPathContextPtr ctxt,
460 xmlXPathRegisteredFuncsCleanup (xmlXPathContextPtr ctxt);
462 xmlXPathVariableLookup (xmlXPathContextPtr ctxt,
465 xmlXPathVariableLookupNS (xmlXPathContextPtr ctxt,
469 xmlXPathRegisteredVariablesCleanup(xmlXPathContextPtr ctxt);
476 xmlXPathContextPtr ctxt);
478 xmlXPathFreeParserContext (xmlXPathParserContextPtr ctxt);
482 valuePop (xmlXPathParserContextPtr ctxt);
484 valuePush (xmlXPathParserContextPtr ctxt,
517 xmlXPathRoot (xmlXPathParserContextPtr ctxt);
519 xmlXPathEvalExpr (xmlXPathParserContextPtr ctxt);
521 xmlXPathParseName (xmlXPathParserContextPtr ctxt);
523 xmlXPathParseNCName (xmlXPathParserContextPtr ctxt);
531 xmlXPathEvaluatePredicateResult (xmlXPathParserContextPtr ctxt,
534 xmlXPathRegisterAllFunctions (xmlXPathContextPtr ctxt);
551 XMLPUBFUN int XMLCALL xmlXPathEqualValues(xmlXPathParserContextPtr ctxt);
552 XMLPUBFUN int XMLCALL xmlXPathNotEqualValues(xmlXPathParserContextPtr ctxt);
553 XMLPUBFUN int XMLCALL xmlXPathCompareValues(xmlXPathParserContextPtr ctxt, int inf, int strict);
554 XMLPUBFUN void XMLCALL xmlXPathValueFlipSign(xmlXPathParserContextPtr ctxt);
555 XMLPUBFUN void XMLCALL xmlXPathAddValues(xmlXPathParserContextPtr ctxt);
556 XMLPUBFUN void XMLCALL xmlXPathSubValues(xmlXPathParserContextPtr ctxt);
557 XMLPUBFUN void XMLCALL xmlXPathMultValues(xmlXPathParserContextPtr ctxt);
558 XMLPUBFUN void XMLCALL xmlXPathDivValues(xmlXPathParserContextPtr ctxt);
559 XMLPUBFUN void XMLCALL xmlXPathModValues(xmlXPathParserContextPtr ctxt);
566 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextSelf(xmlXPathParserContextPtr ctxt,
568 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextChild(xmlXPathParserContextPtr ctxt,
570 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextDescendant(xmlXPathParserContextPtr ctxt,
572 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextDescendantOrSelf(xmlXPathParserContextPtr ctxt,
574 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextParent(xmlXPathParserContextPtr ctxt,
576 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextAncestorOrSelf(xmlXPathParserContextPtr ctxt,
578 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextFollowingSibling(xmlXPathParserContextPtr ctxt,
580 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextFollowing(xmlXPathParserContextPtr ctxt,
582 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextNamespace(xmlXPathParserContextPtr ctxt,
584 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextAttribute(xmlXPathParserContextPtr ctxt,
586 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextPreceding(xmlXPathParserContextPtr ctxt,
588 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextAncestor(xmlXPathParserContextPtr ctxt,
590 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextPrecedingSibling(xmlXPathParserContextPtr ctxt,
595 XMLPUBFUN void XMLCALL xmlXPathLastFunction(xmlXPathParserContextPtr ctxt, int nargs);
596 XMLPUBFUN void XMLCALL xmlXPathPositionFunction(xmlXPathParserContextPtr ctxt, int nargs);
597 XMLPUBFUN void XMLCALL xmlXPathCountFunction(xmlXPathParserContextPtr ctxt, int nargs);
598 XMLPUBFUN void XMLCALL xmlXPathIdFunction(xmlXPathParserContextPtr ctxt, int nargs);
599 XMLPUBFUN void XMLCALL xmlXPathLocalNameFunction(xmlXPathParserContextPtr ctxt, int nargs);
600 XMLPUBFUN void XMLCALL xmlXPathNamespaceURIFunction(xmlXPathParserContextPtr ctxt, int nargs);
601 XMLPUBFUN void XMLCALL xmlXPathStringFunction(xmlXPathParserContextPtr ctxt, int nargs);
602 XMLPUBFUN void XMLCALL xmlXPathStringLengthFunction(xmlXPathParserContextPtr ctxt, int nargs);
603 XMLPUBFUN void XMLCALL xmlXPathConcatFunction(xmlXPathParserContextPtr ctxt, int nargs);
604 XMLPUBFUN void XMLCALL xmlXPathContainsFunction(xmlXPathParserContextPtr ctxt, int nargs);
605 XMLPUBFUN void XMLCALL xmlXPathStartsWithFunction(xmlXPathParserContextPtr ctxt, int nargs);
606 XMLPUBFUN void XMLCALL xmlXPathSubstringFunction(xmlXPathParserContextPtr ctxt, int nargs);
607 XMLPUBFUN void XMLCALL xmlXPathSubstringBeforeFunction(xmlXPathParserContextPtr ctxt, int nargs);
608 XMLPUBFUN void XMLCALL xmlXPathSubstringAfterFunction(xmlXPathParserContextPtr ctxt, int nargs);
609 XMLPUBFUN void XMLCALL xmlXPathNormalizeFunction(xmlXPathParserContextPtr ctxt, int nargs);
610 XMLPUBFUN void XMLCALL xmlXPathTranslateFunction(xmlXPathParserContextPtr ctxt, int nargs);
611 XMLPUBFUN void XMLCALL xmlXPathNotFunction(xmlXPathParserContextPtr ctxt, int nargs);
612 XMLPUBFUN void XMLCALL xmlXPathTrueFunction(xmlXPathParserContextPtr ctxt, int nargs);
613 XMLPUBFUN void XMLCALL xmlXPathFalseFunction(xmlXPathParserContextPtr ctxt, int nargs);
614 XMLPUBFUN void XMLCALL xmlXPathLangFunction(xmlXPathParserContextPtr ctxt, int nargs);
615 XMLPUBFUN void XMLCALL xmlXPathNumberFunction(xmlXPathParserContextPtr ctxt, int nargs);
616 XMLPUBFUN void XMLCALL xmlXPathSumFunction(xmlXPathParserContextPtr ctxt, int nargs);
617 XMLPUBFUN void XMLCALL xmlXPathFloorFunction(xmlXPathParserContextPtr ctxt, int nargs);
618 XMLPUBFUN void XMLCALL xmlXPathCeilingFunction(xmlXPathParserContextPtr ctxt, int nargs);
619 XMLPUBFUN void XMLCALL xmlXPathRoundFunction(xmlXPathParserContextPtr ctxt, int nargs);
620 XMLPUBFUN void XMLCALL xmlXPathBooleanFunction(xmlXPathParserContextPtr ctxt, int nargs);