GNOME Bugzilla – Bug 351215
TextReader can only parse files.
Last modified: 2006-11-11 21:29:27 UTC
Attached is a patch that adds two additional constructors to TextReader: TextReader(struct _xmlTextReader* cobj); - to allow usage with other sources TextReader(const char* data, int size = -1, const Glib::ustring& uri = Glib::ustring()); - parses in memory data
Created attachment 70837 [details] [review] Implements missing functionality LMK if it's okay to commit this (with an appropriate ChangeLog, of course).
Created attachment 70873 [details] [review] Better patch with distinct constructor signatures. The two TextReader constructor signatures, were far too close. I've removed the default argument for |size| in the case of the memory constructor.
Looks good. I guess we should use size_t or Glib::ustring::size_type for the "int size" parameter.
Done. Defined size_type as a typedef as is done in the Parser class. 2006-11-11 Nate Nielsen <nielsen@memberwebs.com> * libxml++/parsers/textreader.cc * libxml++/parsers/textreader.h: TextReader() can now parse memory buffers as well as files. Bug #351215