diff options
Diffstat (limited to 'kbabel/common/regexpextractor.h')
-rw-r--r-- | kbabel/common/regexpextractor.h | 46 |
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; }; |