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

Function xmlCatalogLocalResolveURI

ThirdParty/libxml2/vtklibxml2/catalog.c:3644–3666  ·  view source on GitHub ↗

* xmlCatalogLocalResolveURI: * @catalogs: a document's list of catalogs * @URI: the URI * * Do a complete resolution lookup of an URI using a * document's private catalog list * * Returns the URI of the resource or NULL if not found, it must be freed * by the caller. */

Source from the content-addressed store, hash-verified

3642 * by the caller.
3643 */
3644xmlChar *
3645xmlCatalogLocalResolveURI(void *catalogs, const xmlChar *URI) {
3646 xmlCatalogEntryPtr catal;
3647 xmlChar *ret;
3648
3649 if (!xmlCatalogInitialized)
3650 xmlInitializeCatalog();
3651
3652 if (URI == NULL)
3653 return(NULL);
3654
3655 if (xmlDebugCatalogs)
3656 fprintf(stderr,
3657 "Resolve URI %s\n", URI);
3658
3659 catal = (xmlCatalogEntryPtr) catalogs;
3660 if (catal == NULL)
3661 return(NULL);
3662 ret = xmlCatalogListXMLResolveURI(catal, URI);
3663 if ((ret != NULL) && (ret != XML_CATAL_BREAK))
3664 return(ret);
3665 return(NULL);
3666}
3667
3668/************************************************************************
3669 * *

Callers 1

Calls 3

xmlInitializeCatalogFunction · 0.85
fprintfFunction · 0.85

Tested by

no test coverage detected