1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

fixing bug #84169 by fixing the comment of xmlCreatePushParserCtxt to

* parser.c: fixing bug #84169 by fixing the
  comment of xmlCreatePushParserCtxt to describe the
  encoding detection parameters better.
Daniel
This commit is contained in:
Daniel Veillard
2002-07-06 19:22:28 +00:00
parent 37f961db6e
commit 176d99f400
2 changed files with 11 additions and 1 deletions

View File

@ -8939,13 +8939,17 @@ xmlStopParser(xmlParserCtxtPtr ctxt) {
* @size: number of chars in the array
* @filename: an optional file name or URI
*
* Create a parser context for using the XML parser in push mode
* Create a parser context for using the XML parser in push mode.
* If @buffer and @size are non-NULL, the data is used to detect
* the encoding. The remaining characters will be parsed so they
* don't need to be fed in again through xmlParseChunk.
* To allow content encoding detection, @size should be >= 4
* The value of @filename is used for fetching external entities
* and error/warning reports.
*
* Returns the new parser context or NULL
*/
xmlParserCtxtPtr
xmlCreatePushParserCtxt(xmlSAXHandlerPtr sax, void *user_data,
const char *chunk, int size, const char *filename) {