From 3fc3e60db48e7b9c61ffac6e52207b1991b773ff Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Mon, 20 Sep 2010 20:14:16 +0000 Subject: Implemented load_file and save_file for wide character paths git-svn-id: http://pugixml.googlecode.com/svn/trunk@741 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/pugixml.hpp') diff --git a/src/pugixml.hpp b/src/pugixml.hpp index b6f1710..12b8f49 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -1672,6 +1672,16 @@ namespace pugi */ xml_parse_result load_file(const char* path, unsigned int options = parse_default, xml_encoding encoding = encoding_auto); + /** + * Load document from file + * + * \param path - file path + * \param options - parsing options + * \param encoding - source data encoding + * \return parsing result + */ + xml_parse_result load_file(const wchar_t* path, unsigned int options = parse_default, xml_encoding encoding = encoding_auto); + /** * Load document from buffer * @@ -1751,6 +1761,17 @@ namespace pugi * \return success flag */ bool save_file(const char* path, const char_t* indent = PUGIXML_TEXT("\t"), unsigned int flags = format_default, xml_encoding encoding = encoding_auto) const; + + /** + * Save XML to file + * + * \param path - file path + * \param indent - indentation string + * \param flags - formatting flags + * \param encoding - encoding used for writing + * \return success flag + */ + bool save_file(const wchar_t* path, const char_t* indent = PUGIXML_TEXT("\t"), unsigned int flags = format_default, xml_encoding encoding = encoding_auto) const; }; #ifndef PUGIXML_NO_XPATH -- cgit v1.2.3