diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | e05894553004a47b1e2f276bedcf5963b57a3932 (patch) | |
tree | 2c12af14a609c053131e3a463068fa7589e6ac6a /src/languages/gpdasm.cpp | |
parent | 60cba8acf96454af45641d6190a3f2ac9f9ff9b0 (diff) | |
download | ktechlab-e05894553004a47b1e2f276bedcf5963b57a3932.tar.gz ktechlab-e05894553004a47b1e2f276bedcf5963b57a3932.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/languages/gpdasm.cpp')
-rw-r--r-- | src/languages/gpdasm.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/languages/gpdasm.cpp b/src/languages/gpdasm.cpp index ea98221..e0a7b9e 100644 --- a/src/languages/gpdasm.cpp +++ b/src/languages/gpdasm.cpp @@ -77,13 +77,13 @@ bool Gpdasm::processExited( bool successfully ) bool Gpdasm::isError( const TQString &message ) const { - return (message.tqfind( "error", -1, false ) != -1); + return (message.find( "error", -1, false ) != -1); } bool Gpdasm::isWarning( const TQString &message ) const { - return (message.tqfind( "warning", -1, false ) != -1); + return (message.find( "warning", -1, false ) != -1); } @@ -92,18 +92,18 @@ MessageInfo Gpdasm::extractMessageInfo( const TQString &text ) if ( text.length()<5 || !text.startsWith("/") ) return MessageInfo(); - const int index = text.tqfind( ".asm", 0, false )+4; + const int index = text.find( ".asm", 0, false )+4; if ( index == -1+4 ) return MessageInfo(); const TQString fileName = text.left(index); // Extra line number const TQString message = text.right(text.length()-index); - const int linePos = message.tqfind( TQRegExp(":[\\d]+") ); + const int linePos = message.find( TQRegExp(":[\\d]+") ); int line = -1; if ( linePos != -1 ) { - const int linePosEnd = message.tqfind( ':', linePos+1 ); + const int linePosEnd = message.find( ':', linePos+1 ); if ( linePosEnd != -1 ) { const TQString number = message.mid( linePos+1, linePosEnd-linePos-1 ).stripWhiteSpace(); |