summaryrefslogtreecommitdiffstats
path: root/kbabel/common/regexpextractor.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kbabel/common/regexpextractor.h
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbabel/common/regexpextractor.h')
-rw-r--r--kbabel/common/regexpextractor.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/kbabel/common/regexpextractor.h b/kbabel/common/regexpextractor.h
index 89703fba..83ff8f60 100644
--- a/kbabel/common/regexpextractor.h
+++ b/kbabel/common/regexpextractor.h
@@ -34,11 +34,11 @@
#ifndef _REGEXP_EXTRACTOR_H_
#define _REGEXP_EXTRACTOR_H_
-#include <qptrlist.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qvaluelist.h>
-#include <qregexp.h>
+#include <tqptrlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqvaluelist.h>
+#include <tqregexp.h>
#include <kdemacros.h>
namespace KBabel
@@ -46,7 +46,7 @@ namespace KBabel
struct KDE_EXPORT MatchedEntryInfo{
uint index;
- QString extracted;
+ TQString extracted;
};
@@ -61,14 +61,14 @@ public:
/**
* Create a regexp extractor for "string"
*/
- RegExpExtractor(const QStringList& regexps);
+ RegExpExtractor(const TQStringList& regexps);
virtual ~RegExpExtractor() {}
/**
* Set the string of this extractor
*/
- void setString(QString string);
+ void setString(TQString string);
/**
* @return the number of matches found
@@ -79,17 +79,17 @@ public:
* @return the first match, and set the internal cursor to
* the beginning
*/
- QString firstMatch();
+ TQString firstMatch();
/**
* @return the next match and move cursor forward
*/
- QString nextMatch();
+ TQString nextMatch();
/**
* @return the n-th match. It also moves the cursor.
*/
- QString match(uint matchnumber);
+ TQString match(uint matchnumber);
/**
* @return the n-th match. It also moves the cursor. -1 is there
@@ -100,17 +100,17 @@ public:
/**
* @return the next match and move cursor forward
*/
- QString prevMatch();
+ TQString prevMatch();
/**
* @return the last match and move the cursor to the end
*/
- QString lastMatch();
+ TQString lastMatch();
/**
* @return a list of all matches
*/
- QStringList matches();
+ TQStringList matches();
/**
* @return the string without matched text
@@ -120,36 +120,36 @@ public:
* the matches are replaced with ' ' and therefore the position of the
* words will not change
*/
- QString plainString(bool keepPos=false);
+ TQString plainString(bool keepPos=false);
/**
* @return the string, where matches are replaced with the given string
*/
- QString matchesReplaced(const QString& replace);
+ TQString matchesReplaced(const TQString& replace);
//Functions that allow user to define his own regexps.
/**
* Add a regexp to the list of regexp identifier.
*/
- void addRegExpIdentifier(QString regexp);
+ void addRegExpIdentifier(TQString regexp);
/**
* Delete from the regexp list the regexp.
*/
- void deleteRegExpIdentifier(QString regexp);
+ void deleteRegExpIdentifier(TQString regexp);
- void setRegExpList( const QStringList& regexps );
+ void setRegExpList( const TQStringList& regexps );
- QStringList regExpList();
+ TQStringList regExpList();
protected:
void processString();
- QPtrList<MatchedEntryInfo> _matches;
- QString _string;
- QStringList _regExpList;
+ TQPtrList<MatchedEntryInfo> _matches;
+ TQString _string;
+ TQStringList _regExpList;
};