summaryrefslogtreecommitdiffstats
path: root/languages/cpp/stringhelpers.cpp
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
commit330c33ab6f97b279737bf9527c9add7bb1475450 (patch)
tree85cb998d3077ae295d65944ebb4d0189fc660ead /languages/cpp/stringhelpers.cpp
parent093de0db4fea89b3f94a2359c6981f353d035eb7 (diff)
downloadtdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.tar.gz
tdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/cpp/stringhelpers.cpp')
-rw-r--r--languages/cpp/stringhelpers.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/languages/cpp/stringhelpers.cpp b/languages/cpp/stringhelpers.cpp
index bc1a8dc7..bc267c15 100644
--- a/languages/cpp/stringhelpers.cpp
+++ b/languages/cpp/stringhelpers.cpp
@@ -36,9 +36,9 @@ TQString clearComments( TQString str ) {
int lastPos = 0;
int pos;
int len = str.length();
- while( (pos = str.tqfind( "/*", lastPos )) != -1 ) {
+ while( (pos = str.find( "/*", lastPos )) != -1 ) {
if( !s ) return str;
- int i = str.tqfind( "*/", pos );
+ int i = str.find( "*/", pos );
if( i != -1 && i <= len - 2 ) {
clearStr( str, pos, i+2 );
lastPos = i+2;
@@ -49,9 +49,9 @@ TQString clearComments( TQString str ) {
}
lastPos = 0;
- while( (pos = str.tqfind( "//", lastPos )) != -1 ) {
+ while( (pos = str.find( "//", lastPos )) != -1 ) {
if( !s ) return str;
- int i = str.tqfind( "\n", pos );
+ int i = str.find( "\n", pos );
if( i != -1 && i <= len - 1 ) {
clearStr( str, pos, i+1 );
lastPos = i+1;
@@ -66,17 +66,17 @@ TQString clearComments( TQString str ) {
TQString cutTemplateParams( TQString str ) {
int p;
- if( (p = str.tqfind('<') ) != -1) {
+ if( (p = str.find('<') ) != -1) {
return str.left( p );
}
- return str.stripWhiteSpace().tqreplace('*',"");
+ return str.stripWhiteSpace().replace('*',"");
}
TQPair<TQString, TQString> splitTemplateParams( TQString str ) {
TQPair<TQString, TQString> ret;
int p;
- if( (p = str.tqfind('<') ) != -1) {
+ if( (p = str.find('<') ) != -1) {
ret.first = str.left( p ).stripWhiteSpace();
ret.second = str.mid( p ).stripWhiteSpace();
} else {
@@ -238,8 +238,8 @@ int countExtract( TQChar c, const TQString& str ) {
TQString templateParamFromString( int num, TQString str ) {
if( str.endsWith("::") ) str.truncate( str.length() - 2 );
- int begin = str.tqfind('<');
- int end = str.tqfindRev('>');
+ int begin = str.find('<');
+ int end = str.findRev('>');
if(begin == -1 || end == -1) return "";