summaryrefslogtreecommitdiffstats
path: root/libtdepim/kregexp3.h
diff options
context:
space:
mode:
Diffstat (limited to 'libtdepim/kregexp3.h')
-rw-r--r--libtdepim/kregexp3.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/libtdepim/kregexp3.h b/libtdepim/kregexp3.h
index 4622e16d..85c94d77 100644
--- a/libtdepim/kregexp3.h
+++ b/libtdepim/kregexp3.h
@@ -1,4 +1,4 @@
-/* -*- c++ -*-
+/*
kregexp3.h
This file is part of libtdenetwork.
@@ -34,7 +34,7 @@
#include <tqstring.h>
-#include <tdepimmacros.h>
+#include <tdemacros.h>
/** @short A TQRegExp (TQt3.x) with a replace() method.
@@ -76,14 +76,14 @@
@see TQRegExp
*/
-class KDE_EXPORT KRegExp3 : public TQRegExp
+class TDE_EXPORT KRegExp3 : public TQRegExp
{
public:
KRegExp3()
: TQRegExp() {}
KRegExp3( const TQString & pattern,
- bool caseSensitive = TRUE,
- bool wildcard = FALSE )
+ bool caseSensitive = true,
+ bool wildcard = false )
: TQRegExp( pattern, caseSensitive, wildcard ) {}
KRegExp3( const TQRegExp & rx )
: TQRegExp( rx ) {}
@@ -99,13 +99,13 @@ public:
@param start Start position for the search.
If @p start is negative, starts @p -(start) positions
from the end of @p str.
- @param global If @p TRUE, requests to replace all occurrences
- of the regexp with @p replacementStr; if @p FALSE,
+ @param global If @p true, requests to replace all occurrences
+ of the regexp with @p replacementStr; if @p false,
only the first occurrence will be replaced.
Equivalent to the /g switch to perl's s/// operator.
@return The modified string.
*/
TQString replace( const TQString & str,
const TQString & replacementStr,
- int start=0, bool global=TRUE );
+ int start=0, bool global=true );
};