summaryrefslogtreecommitdiffstats
path: root/parts/ctags2/tags.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/ctags2/tags.cpp')
-rw-r--r--parts/ctags2/tags.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/parts/ctags2/tags.cpp b/parts/ctags2/tags.cpp
index 3ba98159..19993823 100644
--- a/parts/ctags2/tags.cpp
+++ b/parts/ctags2/tags.cpp
@@ -18,18 +18,18 @@ namespace ctags
#include "tags.h"
-QStringList Tags::_tagFiles;
+TQStringList Tags::_tagFiles;
Tags::TagEntry::TagEntry() {}
-Tags::TagEntry::TagEntry( const QString & tag, const QString & type, const QString & file, const QString & pattern )
+Tags::TagEntry::TagEntry( const TQString & tag, const TQString & type, const TQString & file, const TQString & pattern )
: tag(tag), type(type), file(file), pattern(pattern)
{}
-bool Tags::hasTag(const QString & tag )
+bool Tags::hasTag(const TQString & tag )
{
- QStringList::iterator it;
+ TQStringList::iterator it;
for (it = _tagFiles.begin(); it != _tagFiles.end() ; it++) {
if (hasTag((*it).ascii(), tag))
return true;
@@ -38,7 +38,7 @@ bool Tags::hasTag(const QString & tag )
return false;
}
-bool Tags::hasTag(const char* tagFile, const QString & tag )
+bool Tags::hasTag(const char* tagFile, const TQString & tag )
{
ctags::tagFileInfo info;
ctags::tagFile * file = ctags::tagsOpen(tagFile, &info );
@@ -51,10 +51,10 @@ bool Tags::hasTag(const char* tagFile, const QString & tag )
return found;
}
-unsigned int Tags::numberOfMatches( const QString & tagpart, bool partial )
+unsigned int Tags::numberOfMatches( const TQString & tagpart, bool partial )
{
unsigned int n = 0;
- QStringList::iterator it;
+ TQStringList::iterator it;
for (it = _tagFiles.begin(); it != _tagFiles.end(); it++)
{
n += numberOfMatches( (*it).ascii(), tagpart, partial );
@@ -63,7 +63,7 @@ unsigned int Tags::numberOfMatches( const QString & tagpart, bool partial )
return n;
}
-unsigned int Tags::numberOfMatches(const char* tagFile, const QString & tagpart, bool partial )
+unsigned int Tags::numberOfMatches(const char* tagFile, const TQString & tagpart, bool partial )
{
unsigned int n = 0;
@@ -88,12 +88,12 @@ unsigned int Tags::numberOfMatches(const char* tagFile, const QString & tagpart,
}
-Tags::TagList Tags::getMatches( const QString & tagpart, bool partial, const QStringList & types )
+Tags::TagList Tags::getMatches( const TQString & tagpart, bool partial, const TQStringList & types )
{
Tags::TagList list;
// build a compound tag list from all the configured tag files
- QStringList::iterator it;
+ TQStringList::iterator it;
for ( it = _tagFiles.begin(); it != _tagFiles.end(); it++ )
{
list += getMatches((*it).ascii(), tagpart, partial, types);
@@ -102,7 +102,7 @@ Tags::TagList Tags::getMatches( const QString & tagpart, bool partial, const QSt
return list;
}
-Tags::TagList Tags::getMatches(const char* tagFile, const QString & tagpart, bool partial, const QStringList & types )
+Tags::TagList Tags::getMatches(const char* tagFile, const TQString & tagpart, bool partial, const TQStringList & types )
{
Tags::TagList list;
@@ -116,8 +116,8 @@ Tags::TagList Tags::getMatches(const char* tagFile, const QString & tagpart, boo
{
do
{
- QString type( CTagsKinds::findKind( entry.kind, QString( entry.file ).section( '.', -1 ) ) );
- QString file( entry.file );
+ TQString type( CTagsKinds::findKind( entry.kind, TQString( entry.file ).section( '.', -1 ) ) );
+ TQString file( entry.file );
if ( type.isEmpty() && file.endsWith( "Makefile" ) )
{
@@ -125,7 +125,7 @@ Tags::TagList Tags::getMatches(const char* tagFile, const QString & tagpart, boo
}
if ( types.isEmpty() || types.contains( entry.kind ) )
{
- list << TagEntry( QString( entry.name ), type, file, QString( entry.address.pattern ) );
+ list << TagEntry( TQString( entry.name ), type, file, TQString( entry.address.pattern ) );
}
}
while ( ctags::tagsFindNext( file, &entry ) == ctags::TagSuccess );
@@ -136,32 +136,32 @@ Tags::TagList Tags::getMatches(const char* tagFile, const QString & tagpart, boo
return list;
}
-void Tags::setTagFiles(const QStringList& tagFiles )
+void Tags::setTagFiles(const TQStringList& tagFiles )
{
_tagFiles = tagFiles;
}
-QStringList Tags::getTagFiles( )
+TQStringList Tags::getTagFiles( )
{
return _tagFiles;
}
-unsigned int Tags::numberOfPartialMatches( const QString & tagpart )
+unsigned int Tags::numberOfPartialMatches( const TQString & tagpart )
{
return numberOfMatches( tagpart, true );
}
-unsigned int Tags::numberOfExactMatches( const QString & tagpart )
+unsigned int Tags::numberOfExactMatches( const TQString & tagpart )
{
return numberOfMatches( tagpart, false );
}
-Tags::TagList Tags::getPartialMatches( const QString & tagpart )
+Tags::TagList Tags::getPartialMatches( const TQString & tagpart )
{
return getMatches( tagpart, true );
}
-Tags::TagList Tags::getExactMatches( const QString & tag )
+Tags::TagList Tags::getExactMatches( const TQString & tag )
{
return getMatches( tag, false );
}