falcong / pugixml

Automatically exported from code.google.com/p/pugixml
0 stars 0 forks source link

Add xml_document::load(char*, unsigned len) overload #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add the

/**
@param content - pointer to the memaory buffer containing unparsed xml.
@param contentLength - size in bytes of the buffer pointed by 'content'.
*/
xml_parse_result xml_document::load(const char* contents, unsigned int
contentLength, unsigned int options = parse_default);

function overload to xml::document.
So, the input string would not have to be null-terminated.

Original issue reported on code.google.com by igagis@gmail.com on 21 Apr 2010 at 12:26

GoogleCodeExporter commented 9 years ago
There are some significant Unicode-related parsing changes in progress; as a 
side-
effect, all input buffers will no longer be null-terminated. So yes, something 
like 
this is planned (although it will be a different named function instead of 
overload, 
your overload conflicts with load(const char*, unsigned int options = 
parse_default)).

Expect this in the future version; I'll update this issue once it's released. 
The 
function will likely be called load_buffer(const char*, size_t, unsigned int 
options 
= parse_default).

Original comment by arseny.k...@gmail.com on 21 Apr 2010 at 12:32

GoogleCodeExporter commented 9 years ago
Thanks

Original comment by igagis@gmail.com on 21 Apr 2010 at 3:51

GoogleCodeExporter commented 9 years ago
The new API is the new release (version 0.9, you can grab it from Downloads 
section). 

Original comment by arseny.k...@gmail.com on 11 Jul 2010 at 5:11

GoogleCodeExporter commented 9 years ago
Verified

Original comment by igagis@gmail.com on 27 Aug 2010 at 11:16