diff options
Diffstat (limited to 'languages/cpp/stringhelpers.cpp')
-rw-r--r-- | languages/cpp/stringhelpers.cpp | 18 |
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 ""; |