summaryrefslogtreecommitdiff
path: root/libopie/xmltree.cc
authorkergoth <kergoth>2002-03-16 04:59:45 (UTC)
committer kergoth <kergoth>2002-03-16 04:59:45 (UTC)
commita4ae0b213389af1ca002b684d2493786311ab60f (patch) (side-by-side diff)
tree67b729a64a50ed2dcab3cb5a6367d7ea72b15d80 /libopie/xmltree.cc
parent20cbfeefd68221f7b6f9dd512c6ff3e9a9484af2 (diff)
downloadopie-a4ae0b213389af1ca002b684d2493786311ab60f.zip
opie-a4ae0b213389af1ca002b684d2493786311ab60f.tar.gz
opie-a4ae0b213389af1ca002b684d2493786311ab60f.tar.bz2
mark: added .pro for libopie. moved .h to includedir.
Diffstat (limited to 'libopie/xmltree.cc') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/xmltree.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie/xmltree.cc b/libopie/xmltree.cc
index bf93151..d5ce74a 100644
--- a/libopie/xmltree.cc
+++ b/libopie/xmltree.cc
@@ -1,45 +1,45 @@
/* This file is part of the KDE project
Copyright (C) 2001 Simon Hausmann <hausmann@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
-#include "xmltree.h"
+#include <opie/xmltree.h>
#include <qxml.h>
#include <assert.h>
namespace
{
/**
Encode an attribute value upon saving.
replaces '"' with "&quot"
replaces '<' with "&lt"
replaces '&' with "&amp"
replaces '>' with "&gt"
*/
QString encodeAttr( const QString& str )
{
QString encAttr( str ); // cause of the const parameter
encAttr = encAttr.replace( QRegExp( "[<]" ), "&lt" );
encAttr = encAttr.replace( QRegExp( "[>]" ), "&gt" );
encAttr = encAttr.replace( QRegExp( "[\"]" ), "&quot" );
encAttr = encAttr.replace( QRegExp( "[&]" ), "&amp" );
return encAttr;
}