summaryrefslogtreecommitdiffstats
path: root/libkdepim/kregexp3.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /libkdepim/kregexp3.h
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdepim/kregexp3.h')
-rw-r--r--libkdepim/kregexp3.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/libkdepim/kregexp3.h b/libkdepim/kregexp3.h
index 40c7681d3..c9b53c5f1 100644
--- a/libkdepim/kregexp3.h
+++ b/libkdepim/kregexp3.h
@@ -36,21 +36,21 @@
#include <kdepimmacros.h>
-/** @short A TQRegExp (Qt3.x) with a replace() method.
+/** @short A TQRegExp (Qt3.x) with a tqreplace() method.
This class is simply there to provide a namespace for some nice
enhancements of the mighty TQRegExp (Qt3 version) regular
- expression engine, namely the method replace(), which can be
- used to do search-and-replace like one is used to from perl or sed.
+ expression engine, namely the method tqreplace(), which can be
+ used to do search-and-tqreplace like one is used to from perl or sed.
- It "simply" adds the ability to define a replacement string which
- contains references to the captured substrings. The following
+ It "simply" adds the ability to define a tqreplacement string which
+ tqcontains references to the captured substrings. The following
constructs are understood, which can be freely mixed in the
- replacement string:
+ tqreplacement string:
@section Sed syntax
- Back references in the replacement string are made using \n
+ Back references in the tqreplacement string are made using \n
(backslash-digit), where @p n is a single digit. With this mode of
operation, only the first nine captured substrings can be
referenced.
@@ -60,7 +60,7 @@
@section Perl syntax
- Back references in the replacement string are made using $n
+ Back references in the tqreplacement string are made using $n
(dollarsign-digit), where @p n is a single digit. With this mode
of operation, only the first nine captured substrings can be
referenced.
@@ -91,21 +91,21 @@ public:
: TQRegExp( (TQRegExp)rx ) {}
/** Replaces each matching subpattern in @p str with
- @p replacementStr, inserting captured substrings for
+ @p tqreplacementStr, inserting captured substrings for
\\n, $n and ${nn} as described in the class documentation.
@param str The source string.
- @param replacementStr The string which replaces matched
+ @param tqreplacementStr The string which tqreplaces matched
substrings of @p str.
@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,
- only the first occurrence will be replaced.
+ @param global If @p TRUE, requests to tqreplace all occurrences
+ of the regexp with @p tqreplacementStr; if @p FALSE,
+ only the first occurrence will be tqreplaced.
Equivalent to the /g switch to perl's s/// operator.
@return The modified string.
*/
- TQString replace( const TQString & str,
- const TQString & replacementStr,
+ TQString tqreplace( const TQString & str,
+ const TQString & tqreplacementStr,
int start=0, bool global=TRUE );
};