OSDN Git Service

Merge branch 'post-2.4.2'
[tjqt4port/tj2qt4.git] / taskjuggler / CSVPrimitives.cpp
1 /*
2  * HTMLPrimitives.cpp - TaskJuggler
3  *
4  * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of version 2 of the GNU General Public License as
8  * published by the Free Software Foundation.
9  *
10  * $Id$
11  */
12
13 #include "CSVPrimitives.h"
14
15 #include <qcstring.h>
16 #include <qmap.h>
17
18 QString
19 CSVPrimitives::filter(const QString& s) const
20 {
21     QString out;
22     for (uint i = 0; i < s.length(); i++)
23     {
24         if (s[i] == '"')
25             out += "\"";
26         out += s[i];
27     }
28
29     return out;
30 }
31
32