summaryrefslogtreecommitdiffstats
path: root/kfile-plugins
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit0813b39aed2cf4c84157a22c4c9594336d93d412 (patch)
tree0f6157f9c9ecc6ed26cb98f058219a8021d3f4a6 /kfile-plugins
parent35dc58791106d7a1864264063df5f3ee3f1f0f15 (diff)
downloadtdesdk-0813b39aed2cf4c84157a22c4c9594336d93d412.tar.gz
tdesdk-0813b39aed2cf4c84157a22c4c9594336d93d412.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfile-plugins')
-rw-r--r--kfile-plugins/c++/kfile_cpp.cpp12
-rw-r--r--kfile-plugins/diff/kfile_diff.cpp10
-rw-r--r--kfile-plugins/ts/kfile_ts.cpp8
3 files changed, 15 insertions, 15 deletions
diff --git a/kfile-plugins/c++/kfile_cpp.cpp b/kfile-plugins/c++/kfile_cpp.cpp
index 59f4fa7e..7e81352b 100644
--- a/kfile-plugins/c++/kfile_cpp.cpp
+++ b/kfile-plugins/c++/kfile_cpp.cpp
@@ -94,25 +94,25 @@ bool KCppPlugin::readInfo( KFileMetaInfo& info, uint )
continue;
}
- if (line.tqcontains("/*")) inComment = true;
+ if (line.contains("/*")) inComment = true;
if (!inComment)
{
codeLines++;
- if (line.tqcontains(TQRegExp("^\\s*#\\s*include"))) Includes++;
+ if (line.contains(TQRegExp("^\\s*#\\s*include"))) Includes++;
- int pos = line.tqfind("//");
+ int pos = line.find("//");
if (pos>=0) commentLines++;
// truncate the comment - we don't want to count strings in it
line.truncate(pos);
- Strings+=line.tqcontains(TQRegExp("\".*\""));
- Stringsi18n+=line.tqcontains(TQRegExp("(?:i18n|I18N_NOOP)\\s*\\("));
+ Strings+=line.contains(TQRegExp("\".*\""));
+ Stringsi18n+=line.contains(TQRegExp("(?:i18n|I18N_NOOP)\\s*\\("));
}
else
commentLines++;
- if (line.tqcontains("*/")) inComment = false;
+ if (line.contains("*/")) inComment = false;
}
KFileMetaInfoGroup group = appendGroup(info, "General");
diff --git a/kfile-plugins/diff/kfile_diff.cpp b/kfile-plugins/diff/kfile_diff.cpp
index 1d8b832e..e0ff1bb4 100644
--- a/kfile-plugins/diff/kfile_diff.cpp
+++ b/kfile-plugins/diff/kfile_diff.cpp
@@ -210,25 +210,25 @@ enum KDiffPlugin::Format KDiffPlugin::determineDiffFormat( const TQStringList li
while ( it != lines.end() )
{
line = (*it);
- if ( line.tqfind( TQRegExp( "^[0-9]+[0-9,]*[acd][0-9]+[0-9,]*$" ), 0 ) == 0 )
+ if ( line.find( TQRegExp( "^[0-9]+[0-9,]*[acd][0-9]+[0-9,]*$" ), 0 ) == 0 )
{
return KDiffPlugin::Normal;
}
- else if ( line.tqfind( TQRegExp( "^--- " ), 0 ) == 0 )
+ else if ( line.find( TQRegExp( "^--- " ), 0 ) == 0 )
{
// unified has first a '^--- ' line, then a '^+++ ' line
return KDiffPlugin::Unified;
}
- else if ( line.tqfind( TQRegExp( "^\\*\\*\\* [^\\t]+\\t" ), 0 ) == 0 )
+ else if ( line.find( TQRegExp( "^\\*\\*\\* [^\\t]+\\t" ), 0 ) == 0 )
{
// context has first a '^*** ' line, then a '^--- ' line
return KDiffPlugin::Context;
}
- else if ( line.tqfind( TQRegExp( "^[acd][0-9]+ [0-9]+" ), 0 ) == 0 )
+ else if ( line.find( TQRegExp( "^[acd][0-9]+ [0-9]+" ), 0 ) == 0 )
{
return KDiffPlugin::RCS;
}
- else if ( line.tqfind( TQRegExp( "^[0-9]+[0-9,]*[acd]" ), 0 ) == 0 )
+ else if ( line.find( TQRegExp( "^[0-9]+[0-9,]*[acd]" ), 0 ) == 0 )
{
return KDiffPlugin::Ed;
}
diff --git a/kfile-plugins/ts/kfile_ts.cpp b/kfile-plugins/ts/kfile_ts.cpp
index e027fda6..72714887 100644
--- a/kfile-plugins/ts/kfile_ts.cpp
+++ b/kfile-plugins/ts/kfile_ts.cpp
@@ -66,18 +66,18 @@ bool KTsPlugin::readInfo(KFileMetaInfo& info, uint)
TQString line = stream.readLine();
// is it really a linguist file?
- if (!line.tqcontains("<!DOCTYPE TS>", false))
+ if (!line.contains("<!DOCTYPE TS>", false))
return false;
while (!stream.eof())
{
line = stream.readLine();
- if (line.tqcontains("type=\"obsolete\"")) obsolete++;
+ if (line.contains("type=\"obsolete\"")) obsolete++;
- if (line.tqcontains("<source>")) messages++;
+ if (line.contains("<source>")) messages++;
- if (line.tqcontains("type=\"unfinished\"")) untranslated++;
+ if (line.contains("type=\"unfinished\"")) untranslated++;
}