From 021574a48430b6cc5589a76e7d02b1fc6a25849d Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sat, 8 May 2010 16:44:04 +0000 Subject: Added 0.5-compatible interfaces for compatibility git-svn-id: http://pugixml.googlecode.com/svn/trunk@386 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/pugixml.cpp') diff --git a/src/pugixml.cpp b/src/pugixml.cpp index b3f2c2c..615d7d4 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -4009,6 +4009,16 @@ namespace pugi return load_buffer(contents, impl::strlen(contents) * sizeof(char_t), options, encoding); } + xml_parse_result xml_document::parse(char* xmlstr, unsigned int options) + { + return load_buffer_inplace(xmlstr, strlen(xmlstr), options, encoding_utf8); + } + + xml_parse_result xml_document::parse(const transfer_ownership_tag&, char* xmlstr, unsigned int options) + { + return load_buffer_inplace_own(xmlstr, strlen(xmlstr), options, encoding_utf8); + } + xml_parse_result xml_document::load_file(const char* name, unsigned int options, encoding_t encoding) { destroy(); @@ -4205,6 +4215,11 @@ namespace pugi return result; } + std::wstring PUGIXML_FUNCTION as_utf16(const char* str) + { + return as_wide(str); + } + std::wstring PUGIXML_FUNCTION as_wide(const char* str) { const impl::char8_t* data = reinterpret_cast(str); -- cgit v1.2.3