summaryrefslogtreecommitdiff
path: root/src/pugixml.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-08 16:44:04 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-08 16:44:04 +0000
commit021574a48430b6cc5589a76e7d02b1fc6a25849d (patch)
treea6798ebbc85ed096cbbc2a655041c047b2c3794e /src/pugixml.cpp
parent18819327e9aff5c34a4e800bf31a894a8390a8a8 (diff)
Added 0.5-compatible interfaces for compatibility
git-svn-id: http://pugixml.googlecode.com/svn/trunk@386 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r--src/pugixml.cpp15
1 files changed, 15 insertions, 0 deletions
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<const impl::char8_t*>(str);