Commit 1a4d1f66 authored by Vitaly Lipatov's avatar Vitaly Lipatov

UniXML: make xml2local, local2xml protected

parent 4caa9237
...@@ -68,13 +68,6 @@ public: ...@@ -68,13 +68,6 @@ public:
static const std::string xmlEncoding; static const std::string xmlEncoding;
// XML
static std::string xml2local(const std::string text);
// XML
// , .
static const xmlChar* local2xml(std::string text);
static std::string local2utf8(const std::string text);
// XML- // XML-
void newDoc(const std::string& root_node, std::string xml_ver="1.0"); void newDoc(const std::string& root_node, std::string xml_ver="1.0");
...@@ -118,6 +111,14 @@ public: ...@@ -118,6 +111,14 @@ public:
protected: protected:
// XML
static std::string xml2local(const std::string text);
// XML
// , .
static const xmlChar* local2xml(std::string text);
static std::string local2utf8(const std::string text);
static int recur; static int recur;
}; };
......
...@@ -500,6 +500,6 @@ int UniXML_iterator::getPIntProp( const string name, int def ) const ...@@ -500,6 +500,6 @@ int UniXML_iterator::getPIntProp( const string name, int def ) const
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
void UniXML_iterator::setProp( const string name, const string text ) void UniXML_iterator::setProp( const string name, const string text )
{ {
xmlSetProp(curNode, (const xmlChar*)name.c_str(), UniXML::local2xml(text)); UniXML::setProp(curNode, name, text);
} }
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment