libtdepim

kregexp3.h
1 /*
2  kregexp3.h
3 
4  This file is part of libtdenetwork.
5  Copyright (c) 2001 Marc Mutz <mutz@kde.org>
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License,
9  version 2, as published by the Free Software Foundation.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this library; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 
20  In addition, as a special exception, the copyright holders give
21  permission to link the code of this library with any edition of
22  the TQt library by Trolltech AS, Norway (or with modified versions
23  of TQt that use the same license as TQt), and distribute linked
24  combinations including the two. You must obey the GNU General
25  Public License in all respects for all of the code used other than
26  TQt. If you modify this file, you may extend this exception to
27  your version of the file, but you are not obligated to do so. If
28  you do not wish to do so, delete this exception statement from
29  your version.
30 */
31 
32 #include <tqglobal.h>
33 #include <tqregexp.h>
34 
35 #include <tqstring.h>
36 
37 #include <tdemacros.h>
38 
79 class TDE_EXPORT KRegExp3 : public TQRegExp
80 {
81 public:
82  KRegExp3()
83  : TQRegExp() {}
84  KRegExp3( const TQString & pattern,
85  bool caseSensitive = TRUE,
86  bool wildcard = FALSE )
87  : TQRegExp( pattern, caseSensitive, wildcard ) {}
88  KRegExp3( const TQRegExp & rx )
89  : TQRegExp( rx ) {}
90  KRegExp3( const KRegExp3 & rx )
91  : TQRegExp( (TQRegExp)rx ) {}
92 
108  TQString replace( const TQString & str,
109  const TQString & replacementStr,
110  int start=0, bool global=TRUE );
111 };
A TQRegExp (TQt3.x) with a replace() method.
Definition: kregexp3.h:80