From d2443e8948ac237d02df51810d74343ae3a0551f Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Mon, 5 Jan 2009 20:23:14 +0000 Subject: Document saving improvements - no escaping is done for ' character or for symbols in second half of ASCII table; format_utf8 is therefore gone git-svn-id: http://pugixml.googlecode.com/svn/trunk@95 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.hpp | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'src/pugixml.hpp') diff --git a/src/pugixml.hpp b/src/pugixml.hpp index 5ce3fcd..5276447 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -174,21 +174,12 @@ namespace pugi */ const unsigned int format_indent = 0x01; - /** - * This flag determines how the non-printable symbols are written to output stream - they are - * either considered UTF-8 and are written as UTF-8 character, escaped with &#...;, or they are - * considered to be ASCII and each ASCII character is escaped separately. - * - * This flag is on by default. - */ - const unsigned int format_utf8 = 0x02; - /** * This flag determines if UTF-8 BOM is to be written to output stream. * * This flag is off by default. */ - const unsigned int format_write_bom = 0x04; + const unsigned int format_write_bom = 0x02; /** * If this flag is on, no indentation is performed and no line breaks are written to output file. @@ -196,13 +187,13 @@ namespace pugi * * This flag is off by default. */ - const unsigned int format_raw = 0x08; + const unsigned int format_raw = 0x04; /** * This is the default set of formatting flags. It includes indenting nodes depending on their - * depth in DOM tree and considering input data to be UTF-8. + * depth in DOM tree. */ - const unsigned int format_default = format_indent | format_utf8; + const unsigned int format_default = format_indent; // Forward declarations struct xml_attribute_struct; -- cgit v1.2.3