mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
Core: AsXML now with Stream variant, AsXMLFile
git-svn-id: svn://ultimatepp.org/upp/trunk@6648 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
6b3006a342
commit
9a2ad5451b
4 changed files with 109 additions and 8 deletions
|
|
@ -23,6 +23,9 @@ public:
|
|||
String Text(const String& s, byte charset = CHARSET_DEFAULT) { return Text(~s, charset); }
|
||||
String PreservedText(const char *s, byte charset = CHARSET_DEFAULT);
|
||||
String PreservedText(const String& s, byte charset = CHARSET_DEFAULT) { return PreservedText(~s, charset); }
|
||||
|
||||
String GetBegin() const { return tag + '>'; }
|
||||
String GetEnd() const { return end; }
|
||||
|
||||
XmlTag& operator()(const char *attr, const char *val);
|
||||
XmlTag& operator()(const char *attr, int q);
|
||||
|
|
@ -250,6 +253,9 @@ public:
|
|||
enum {
|
||||
XML_HEADER = 0x01,
|
||||
XML_DOCTYPE = 0x02,
|
||||
XML_PRETTY = 0x04,
|
||||
};
|
||||
|
||||
String AsXML(const XmlNode& n, dword style = XML_HEADER|XML_DOCTYPE);
|
||||
void AsXML(Stream& out, const XmlNode& n, dword style = XML_HEADER|XML_DOCTYPE|XML_PRETTY);
|
||||
String AsXML(const XmlNode& n, dword style = XML_HEADER|XML_DOCTYPE|XML_PRETTY);
|
||||
bool AsXMLFile(const char *path, const XmlNode& n, dword style = XML_HEADER|XML_DOCTYPE|XML_PRETTY);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue