* xmlReaderForDoc: * @cur: a pointer to a zero terminated string * @URL: the base URL to use for the document * @encoding: the document encoding, or NULL * @options: a combination of xmlParserOption * * Create an xmltextReader for an XML in-memory document. * The parsing flags @options are a combination of xmlParserOption. * * Returns the new reader or NULL in case of error. */
| 5135 | * Returns the new reader or NULL in case of error. |
| 5136 | */ |
| 5137 | xmlTextReaderPtr |
| 5138 | xmlReaderForDoc(const xmlChar * cur, const char *URL, const char *encoding, |
| 5139 | int options) |
| 5140 | { |
| 5141 | int len; |
| 5142 | |
| 5143 | if (cur == NULL) |
| 5144 | return (NULL); |
| 5145 | len = xmlStrlen(cur); |
| 5146 | |
| 5147 | return (xmlReaderForMemory |
| 5148 | ((const char *) cur, len, URL, encoding, options)); |
| 5149 | } |
| 5150 | |
| 5151 | /** |
| 5152 | * xmlReaderForFile: |
nothing calls this directly
no test coverage detected