[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src xml_helper.cxx,1.10,1.11 xml_helper.h
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src xml_helper.cxx,1.10,1.11 xml_helper.hxx,1.5,1.6 |
Date: |
16 Aug 2002 13:02:08 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src
In directory dark:/tmp/cvs-serv7059
Modified Files:
xml_helper.cxx xml_helper.hxx
Log Message:
added helper method for input parsers
Index: xml_helper.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/xml_helper.cxx,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- xml_helper.cxx 14 Aug 2002 12:00:05 -0000 1.10
+++ xml_helper.cxx 16 Aug 2002 13:02:06 -0000 1.11
@@ -31,6 +31,15 @@
using namespace Pingus;
+xmlNodePtr
+XMLhelper::skip_blank(xmlNodePtr cur)
+{
+ if (xmlIsBlankNode(cur))
+ return cur->next;
+ else
+ return cur;
+}
+
std::string
XMLhelper::encode_entities(const std::string& arg_str)
{
Index: xml_helper.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/xml_helper.hxx,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- xml_helper.hxx 25 Jun 2002 12:20:31 -0000 1.5
+++ xml_helper.hxx 16 Aug 2002 13:02:06 -0000 1.6
@@ -25,6 +25,7 @@
#include <iosfwd>
#include <ClanLib/Core/Math/cl_vector.h>
+#include "pingus.hxx"
// FIX: Under windows, it's necessary to use libxml/parser.h, or MS's
// compiler will fails.
@@ -62,6 +63,8 @@
public:
static std::string encode_entities(const std::string& arg_str);
+
+ static xmlNodePtr skip_blank(xmlNodePtr cur);
/// A set of function to parse an xml file
//@{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src xml_helper.cxx,1.10,1.11 xml_helper.hxx,1.5,1.6,
torangan <=