* 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 */
| 3978 | * Returns the xmlXPathFunction or NULL if not found |
| 3979 | */ |
| 3980 | xmlXPathFunction |
| 3981 | xmlXPathFunctionLookup(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: |
no test coverage detected