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; \
307 if ((ctxt->value != NULL) && (ctxt->value->type != XPATH_STRING)) \
308 xmlXPathStringFunction(ctxt, 1);
316 if ((ctxt->value != NULL) && (ctxt->value->type != XPATH_NUMBER)) \
317 xmlXPathNumberFunction(ctxt, 1);
325 if ((ctxt->value != NULL) && (ctxt->value->type != XPATH_BOOLEAN)) \
326 xmlXPathBooleanFunction(ctxt, 1);
333 xmlXPathRegisterVariableLookup (xmlXPathContextPtr ctxt,
342 xmlXPathRegisterFuncLookup (xmlXPathContextPtr ctxt,
350 xmlXPatherror (xmlXPathParserContextPtr ctxt,
356 xmlXPathErr (xmlXPathParserContextPtr ctxt,
423 xmlXPathRegisterNs (xmlXPathContextPtr ctxt,
427 xmlXPathNsLookup (xmlXPathContextPtr ctxt,
430 xmlXPathRegisteredNsCleanup (xmlXPathContextPtr ctxt);
433 xmlXPathRegisterFunc (xmlXPathContextPtr ctxt,
437 xmlXPathRegisterFuncNS (xmlXPathContextPtr ctxt,
442 xmlXPathRegisterVariable (xmlXPathContextPtr ctxt,
446 xmlXPathRegisterVariableNS (xmlXPathContextPtr ctxt,
451 xmlXPathFunctionLookup (xmlXPathContextPtr ctxt,
454 xmlXPathFunctionLookupNS (xmlXPathContextPtr ctxt,
458 xmlXPathRegisteredFuncsCleanup (xmlXPathContextPtr ctxt);
460 xmlXPathVariableLookup (xmlXPathContextPtr ctxt,
463 xmlXPathVariableLookupNS (xmlXPathContextPtr ctxt,
467 xmlXPathRegisteredVariablesCleanup(xmlXPathContextPtr ctxt);
474 xmlXPathContextPtr ctxt);
476 xmlXPathFreeParserContext (xmlXPathParserContextPtr ctxt);
480 valuePop (xmlXPathParserContextPtr ctxt);
482 valuePush (xmlXPathParserContextPtr ctxt,
515 xmlXPathRoot (xmlXPathParserContextPtr ctxt);
517 xmlXPathEvalExpr (xmlXPathParserContextPtr ctxt);
519 xmlXPathParseName (xmlXPathParserContextPtr ctxt);
521 xmlXPathParseNCName (xmlXPathParserContextPtr ctxt);
529 xmlXPathEvaluatePredicateResult (xmlXPathParserContextPtr ctxt,
532 xmlXPathRegisterAllFunctions (xmlXPathContextPtr ctxt);
549 XMLPUBFUN int XMLCALL xmlXPathEqualValues(xmlXPathParserContextPtr ctxt);
550 XMLPUBFUN int XMLCALL xmlXPathNotEqualValues(xmlXPathParserContextPtr ctxt);
551 XMLPUBFUN int XMLCALL xmlXPathCompareValues(xmlXPathParserContextPtr ctxt, int inf, int strict);
552 XMLPUBFUN void XMLCALL xmlXPathValueFlipSign(xmlXPathParserContextPtr ctxt);
553 XMLPUBFUN void XMLCALL xmlXPathAddValues(xmlXPathParserContextPtr ctxt);
554 XMLPUBFUN void XMLCALL xmlXPathSubValues(xmlXPathParserContextPtr ctxt);
555 XMLPUBFUN void XMLCALL xmlXPathMultValues(xmlXPathParserContextPtr ctxt);
556 XMLPUBFUN void XMLCALL xmlXPathDivValues(xmlXPathParserContextPtr ctxt);
557 XMLPUBFUN void XMLCALL xmlXPathModValues(xmlXPathParserContextPtr ctxt);
564 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextSelf(xmlXPathParserContextPtr ctxt,
566 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextChild(xmlXPathParserContextPtr ctxt,
568 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextDescendant(xmlXPathParserContextPtr ctxt,
570 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextDescendantOrSelf(xmlXPathParserContextPtr ctxt,
572 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextParent(xmlXPathParserContextPtr ctxt,
574 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextAncestorOrSelf(xmlXPathParserContextPtr ctxt,
576 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextFollowingSibling(xmlXPathParserContextPtr ctxt,
578 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextFollowing(xmlXPathParserContextPtr ctxt,
580 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextNamespace(xmlXPathParserContextPtr ctxt,
582 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextAttribute(xmlXPathParserContextPtr ctxt,
584 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextPreceding(xmlXPathParserContextPtr ctxt,
586 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextAncestor(xmlXPathParserContextPtr ctxt,
588 XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextPrecedingSibling(xmlXPathParserContextPtr ctxt,
593 XMLPUBFUN void XMLCALL xmlXPathLastFunction(xmlXPathParserContextPtr ctxt, int nargs);
594 XMLPUBFUN void XMLCALL xmlXPathPositionFunction(xmlXPathParserContextPtr ctxt, int nargs);
595 XMLPUBFUN void XMLCALL xmlXPathCountFunction(xmlXPathParserContextPtr ctxt, int nargs);
596 XMLPUBFUN void XMLCALL xmlXPathIdFunction(xmlXPathParserContextPtr ctxt, int nargs);
597 XMLPUBFUN void XMLCALL xmlXPathLocalNameFunction(xmlXPathParserContextPtr ctxt, int nargs);
598 XMLPUBFUN void XMLCALL xmlXPathNamespaceURIFunction(xmlXPathParserContextPtr ctxt, int nargs);
599 XMLPUBFUN void XMLCALL xmlXPathStringFunction(xmlXPathParserContextPtr ctxt, int nargs);
600 XMLPUBFUN void XMLCALL xmlXPathStringLengthFunction(xmlXPathParserContextPtr ctxt, int nargs);
601 XMLPUBFUN void XMLCALL xmlXPathConcatFunction(xmlXPathParserContextPtr ctxt, int nargs);
602 XMLPUBFUN void XMLCALL xmlXPathContainsFunction(xmlXPathParserContextPtr ctxt, int nargs);
603 XMLPUBFUN void XMLCALL xmlXPathStartsWithFunction(xmlXPathParserContextPtr ctxt, int nargs);
604 XMLPUBFUN void XMLCALL xmlXPathSubstringFunction(xmlXPathParserContextPtr ctxt, int nargs);
605 XMLPUBFUN void XMLCALL xmlXPathSubstringBeforeFunction(xmlXPathParserContextPtr ctxt, int nargs);
606 XMLPUBFUN void XMLCALL xmlXPathSubstringAfterFunction(xmlXPathParserContextPtr ctxt, int nargs);
607 XMLPUBFUN void XMLCALL xmlXPathNormalizeFunction(xmlXPathParserContextPtr ctxt, int nargs);
608 XMLPUBFUN void XMLCALL xmlXPathTranslateFunction(xmlXPathParserContextPtr ctxt, int nargs);
609 XMLPUBFUN void XMLCALL xmlXPathNotFunction(xmlXPathParserContextPtr ctxt, int nargs);
610 XMLPUBFUN void XMLCALL xmlXPathTrueFunction(xmlXPathParserContextPtr ctxt, int nargs);
611 XMLPUBFUN void XMLCALL xmlXPathFalseFunction(xmlXPathParserContextPtr ctxt, int nargs);
612 XMLPUBFUN void XMLCALL xmlXPathLangFunction(xmlXPathParserContextPtr ctxt, int nargs);
613 XMLPUBFUN void XMLCALL xmlXPathNumberFunction(xmlXPathParserContextPtr ctxt, int nargs);
614 XMLPUBFUN void XMLCALL xmlXPathSumFunction(xmlXPathParserContextPtr ctxt, int nargs);
615 XMLPUBFUN void XMLCALL xmlXPathFloorFunction(xmlXPathParserContextPtr ctxt, int nargs);
616 XMLPUBFUN void XMLCALL xmlXPathCeilingFunction(xmlXPathParserContextPtr ctxt, int nargs);
617 XMLPUBFUN void XMLCALL xmlXPathRoundFunction(xmlXPathParserContextPtr ctxt, int nargs);
618 XMLPUBFUN void XMLCALL xmlXPathBooleanFunction(xmlXPathParserContextPtr ctxt, int nargs);