* xmlParserInputBufferCreateFilenameSafe: * @URI: the filename or URI * @enc: encoding enum (deprecated) * @out: pointer to resulting input buffer * * Create an input buffer for a filename or URI. * * Returns an xmlParserErrors code. */
| 1665 | * Returns an xmlParserErrors code. |
| 1666 | */ |
| 1667 | int |
| 1668 | xmlParserInputBufferCreateFilenameSafe(const char *URI, xmlCharEncoding enc, |
| 1669 | xmlParserInputBufferPtr *out) { |
| 1670 | if (xmlParserInputBufferCreateFilenameValue != NULL) { |
| 1671 | *out = xmlParserInputBufferCreateFilenameValue(URI, enc); |
| 1672 | |
| 1673 | if (*out == NULL) |
| 1674 | return(XML_IO_ENOENT); |
| 1675 | return(XML_ERR_OK); |
| 1676 | } |
| 1677 | |
| 1678 | return(xmlParserInputBufferCreateFilenameInt(URI, enc, out)); |
| 1679 | } |
| 1680 | |
| 1681 | #ifdef LIBXML_OUTPUT_ENABLED |
| 1682 | xmlOutputBufferPtr |
no test coverage detected