* 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. */
| 3642 | * by the caller. |
| 3643 | */ |
| 3644 | xmlChar * |
| 3645 | xmlCatalogLocalResolveURI(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 | * * |
no test coverage detected