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

Function xmlXPathFunctionLookup

ThirdParty/libxml2/vtklibxml2/xpath.c:3980–3995  ·  view source on GitHub ↗

* xmlXPathFunctionLookup: * @ctxt: the XPath context * @name: the function name * * Search in the Function array of the context for the given * function. * * Returns the xmlXPathFunction or NULL if not found */

Source from the content-addressed store, hash-verified

3978 * Returns the xmlXPathFunction or NULL if not found
3979 */
3980xmlXPathFunction
3981xmlXPathFunctionLookup(xmlXPathContextPtr ctxt, const xmlChar *name) {
3982 if (ctxt == NULL)
3983 return (NULL);
3984
3985 if (ctxt->funcLookupFunc != NULL) {
3986 xmlXPathFunction ret;
3987 xmlXPathFuncLookupFunc f;
3988
3989 f = ctxt->funcLookupFunc;
3990 ret = f(ctxt->funcLookupData, name, NULL);
3991 if (ret != NULL)
3992 return(ret);
3993 }
3994 return(xmlXPathFunctionLookupNS(ctxt, name, NULL));
3995}
3996
3997/**
3998 * xmlXPathFunctionLookupNS:

Callers 1

xmlXPathCompOpEvalFunction · 0.85

Calls 2

xmlXPathFunctionLookupNSFunction · 0.85
fFunction · 0.50

Tested by

no test coverage detected