Lines Matching refs:ctxt

96 void xforms_booleanFromStringFunction(xmlXPathParserContextPtr ctxt, int nargs)  in xforms_booleanFromStringFunction()  argument
99 xmlChar *pString = xmlXPathPopString(ctxt); in xforms_booleanFromStringFunction()
100 if (xmlXPathCheckError(ctxt)) XP_ERROR(XPATH_INVALID_TYPE); in xforms_booleanFromStringFunction()
103 xmlXPathReturnTrue(ctxt); in xforms_booleanFromStringFunction()
105 xmlXPathReturnFalse(ctxt); in xforms_booleanFromStringFunction()
110 void xforms_ifFunction(xmlXPathParserContextPtr ctxt, int nargs) in xforms_ifFunction() argument
113 xmlChar *s2 = xmlXPathPopString(ctxt); in xforms_ifFunction()
115 if (xmlXPathCheckError(ctxt)) XP_ERROR(XPATH_INVALID_TYPE); in xforms_ifFunction()
116 xmlChar *s1 = xmlXPathPopString(ctxt); in xforms_ifFunction()
117 if (xmlXPathCheckError(ctxt)) XP_ERROR(XPATH_INVALID_TYPE); in xforms_ifFunction()
118 bool aBool = xmlXPathPopBoolean(ctxt); in xforms_ifFunction()
119 if (xmlXPathCheckError(ctxt)) XP_ERROR(XPATH_INVALID_TYPE); in xforms_ifFunction()
122 xmlXPathReturnString(ctxt, s1); in xforms_ifFunction()
124 xmlXPathReturnString(ctxt, s2); in xforms_ifFunction()
129 void xforms_avgFunction(xmlXPathParserContextPtr ctxt, int nargs) in xforms_avgFunction() argument
135 xmlXPathObjectPtr pObject = valuePop(ctxt); in xforms_avgFunction()
136 if (xmlXPathCheckError(ctxt)) XP_ERROR(XPATH_INVALID_TYPE); in xforms_avgFunction()
138 valuePush(ctxt, xmlXPathObjectCopy(pObject)); in xforms_avgFunction()
140 xmlXPathSumFunction(ctxt, 1); in xforms_avgFunction()
141 double nSum = xmlXPathPopNumber(ctxt); in xforms_avgFunction()
143 valuePush(ctxt, xmlXPathObjectCopy(pObject)); in xforms_avgFunction()
144 xmlXPathCountFunction(ctxt, 1); in xforms_avgFunction()
145 double nCount = xmlXPathPopNumber(ctxt); in xforms_avgFunction()
147 xmlXPathReturnNumber(ctxt, nSum); in xforms_avgFunction()
148 xmlXPathReturnNumber(ctxt, nCount); in xforms_avgFunction()
149 xmlXPathDivValues(ctxt); in xforms_avgFunction()
154 void xforms_minFunction(xmlXPathParserContextPtr ctxt, int nargs) in xforms_minFunction() argument
157 xmlNodeSetPtr pNodeSet = xmlXPathPopNodeSet(ctxt); in xforms_minFunction()
158 if (xmlXPathCheckError(ctxt)) XP_ERROR(XPATH_INVALID_TYPE); in xforms_minFunction()
166 xmlXPathReturnNumber(ctxt, xmlXPathNAN); in xforms_minFunction()
174 xmlXPathReturnNumber(ctxt, nMinimum); in xforms_minFunction()
177 void xforms_maxFunction(xmlXPathParserContextPtr ctxt, int nargs) in xforms_maxFunction() argument
180 xmlNodeSetPtr pNodeSet = xmlXPathPopNodeSet(ctxt); in xforms_maxFunction()
181 if (xmlXPathCheckError(ctxt)) XP_ERROR(XPATH_INVALID_TYPE); in xforms_maxFunction()
189 xmlXPathReturnNumber(ctxt, xmlXPathNAN); in xforms_maxFunction()
197 xmlXPathReturnNumber(ctxt, nMaximum); in xforms_maxFunction()
199 void xforms_countNonEmptyFunction(xmlXPathParserContextPtr ctxt, int nargs) in xforms_countNonEmptyFunction() argument
202 xmlNodeSetPtr pNodeSet = xmlXPathPopNodeSet(ctxt); in xforms_countNonEmptyFunction()
203 if (xmlXPathCheckError(ctxt)) XP_ERROR(XPATH_INVALID_TYPE); in xforms_countNonEmptyFunction()
211 xmlXPathReturnNumber(ctxt, nNotEmpty); in xforms_countNonEmptyFunction()
226 void xforms_propertyFunction(xmlXPathParserContextPtr ctxt, int nargs) in xforms_propertyFunction() argument
229 xmlChar* pString = xmlXPathPopString(ctxt); in xforms_propertyFunction()
230 if (xmlXPathCheckError(ctxt)) XP_ERROR(XPATH_INVALID_TYPE); in xforms_propertyFunction()
233 xmlXPathReturnString(ctxt, (xmlChar*)_version); in xforms_propertyFunction()
235 xmlXPathReturnString(ctxt, (xmlChar*)_conformance); in xforms_propertyFunction()
237 xmlXPathReturnEmptyString(ctxt); in xforms_propertyFunction()
268 void xforms_nowFunction(xmlXPathParserContextPtr ctxt, int /*nargs*/) in xforms_nowFunction() argument
292 xmlXPathReturnString(ctxt, pString); in xforms_nowFunction()
338 void xforms_daysFromDateFunction(xmlXPathParserContextPtr ctxt, int nargs) in xforms_daysFromDateFunction() argument
343 xmlChar* pString = xmlXPathPopString(ctxt); in xforms_daysFromDateFunction()
344 if (xmlXPathCheckError(ctxt)) XP_ERROR(XPATH_INVALID_TYPE); in xforms_daysFromDateFunction()
352 xmlXPathReturnNumber(ctxt, nDays); in xforms_daysFromDateFunction()
355 xmlXPathReturnNumber(ctxt, xmlXPathNAN); in xforms_daysFromDateFunction()
361 void xforms_secondsFromDateTimeFunction(xmlXPathParserContextPtr ctxt, int nargs) in xforms_secondsFromDateTimeFunction() argument
366 xmlChar* pString = xmlXPathPopString(ctxt); in xforms_secondsFromDateTimeFunction()
367 if (xmlXPathCheckError(ctxt)) XP_ERROR(XPATH_INVALID_TYPE); in xforms_secondsFromDateTimeFunction()
381 xmlXPathReturnNumber(ctxt, nSeconds); in xforms_secondsFromDateTimeFunction()
384 xmlXPathReturnNumber(ctxt, xmlXPathNAN); in xforms_secondsFromDateTimeFunction()
449 void xforms_secondsFuction(xmlXPathParserContextPtr ctxt, int nargs) in xforms_secondsFuction() argument
454 xmlChar* pString = xmlXPathPopString(ctxt); in xforms_secondsFuction()
455 if (xmlXPathCheckError(ctxt)) XP_ERROR(XPATH_INVALID_TYPE); in xforms_secondsFuction()
473 xmlXPathReturnNumber(ctxt, nSeconds); in xforms_secondsFuction()
476 xmlXPathReturnNumber(ctxt, xmlXPathNAN); in xforms_secondsFuction()
479 void xforms_monthsFuction(xmlXPathParserContextPtr ctxt, int nargs) in xforms_monthsFuction() argument
484 xmlChar* pString = xmlXPathPopString(ctxt); in xforms_monthsFuction()
485 if (xmlXPathCheckError(ctxt)) XP_ERROR(XPATH_INVALID_TYPE); in xforms_monthsFuction()
501 xmlXPathReturnNumber(ctxt, nMonths); in xforms_monthsFuction()
504 xmlXPathReturnNumber(ctxt, xmlXPathNAN); in xforms_monthsFuction()
509 void xforms_instanceFuction(xmlXPathParserContextPtr ctxt, int nargs) in xforms_instanceFuction() argument
512 xmlChar *pString = xmlXPathPopString(ctxt); in xforms_instanceFuction()
513 if (xmlXPathCheckError(ctxt)) XP_ERROR(XPATH_INVALID_TYPE); in xforms_instanceFuction()
516 …Reference< XModel > aModel = ((CLibxml2XFormsExtension*)ctxt->context->funcLookupData)->getModel(); in xforms_instanceFuction()
527 xmlXPathReturnNodeSet(ctxt, pObject->nodesetval); in xforms_instanceFuction()
530 xmlXPathReturnEmptyNodeSet(ctxt); in xforms_instanceFuction()
534 xmlXPathReturnEmptyNodeSet(ctxt); in xforms_instanceFuction()
537 xmlXPathReturnEmptyNodeSet(ctxt); in xforms_instanceFuction()
542 void xforms_currentFunction(xmlXPathParserContextPtr ctxt, int nargs) in xforms_currentFunction() argument
546 …Reference< XNode > aNode = ((CLibxml2XFormsExtension*)ctxt->context->funcLookupData)->getContextNo… in xforms_currentFunction()
554 xmlXPathReturnNodeSet(ctxt, pObject->nodesetval); in xforms_currentFunction()
558 xmlXPathReturnEmptyNodeSet(ctxt); in xforms_currentFunction()
562 xmlXPathReturnEmptyNodeSet(ctxt); in xforms_currentFunction()