diff options
author | Timothy Pearson <[email protected]> | 2011-08-09 22:25:47 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-08-09 22:25:47 -0500 |
commit | eaa7ee2e0bbca40ba3173c4304f81957e8964291 (patch) | |
tree | 4f793aa48a5080aedc94ce6e519c3b86708f2b88 /tqtinterface/qt4/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp | |
parent | 79a9d7a46a20d4a0923bc06fc471fdc2176ef865 (diff) | |
download | experimental-eaa7ee2e0bbca40ba3173c4304f81957e8964291.tar.gz experimental-eaa7ee2e0bbca40ba3173c4304f81957e8964291.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
Diffstat (limited to 'tqtinterface/qt4/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp')
-rw-r--r-- | tqtinterface/qt4/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tqtinterface/qt4/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp b/tqtinterface/qt4/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp index 251e2b5..0217682 100644 --- a/tqtinterface/qt4/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp +++ b/tqtinterface/qt4/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp @@ -153,7 +153,7 @@ SyntaxHighlighter_CPP::SyntaxHighlighter_CPP() int len; for ( int i = 0; keywords[ i ]; ++i ) { len = (int)strlen( keywords[ i ] ); - if ( !wordMap->tqcontains( len ) ) + if ( !wordMap->contains( len ) ) wordMap->insert( len, TQMap<TQString, int >() ); TQMap<TQString, int> &map = wordMap->operator[]( len ); map[ keywords[ i ] ] = Keyword; @@ -330,11 +330,11 @@ void SyntaxHighlighter_CPP::process( TQTextDocument *doc, TQTextParagraph *strin break; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case '0': - if ( alphabeth.tqfind( lastChar ) != -1 && - ( mathChars.tqfind( lastChar ) == -1 || numbers.tqfind( string->at( i - 1 )->c ) == -1 ) ) { + if ( alphabeth.find( lastChar ) != -1 && + ( mathChars.find( lastChar ) == -1 || numbers.find( string->at( i - 1 )->c ) == -1 ) ) { input = InputAlpha; } else { - if ( input == InputAlpha && numbers.tqfind( lastChar ) != -1 ) + if ( input == InputAlpha && numbers.find( lastChar ) != -1 ) input = InputAlpha; else input = InputNumber; @@ -381,9 +381,9 @@ void SyntaxHighlighter_CPP::process( TQTextDocument *doc, TQTextParagraph *strin if ( buffer[ 0 ] == 'Q' ) { string->setFormat( i - buffer.length(), buffer.length(), formatType, FALSE ); } else { - TQMap<int, TQMap<TQString, int > >::Iterator it = wordMap->tqfind( len ); + TQMap<int, TQMap<TQString, int > >::Iterator it = wordMap->find( len ); if ( it != wordMap->end() ) { - TQMap<TQString, int >::Iterator it2 = ( *it ).tqfind( buffer ); + TQMap<TQString, int >::Iterator it2 = ( *it ).find( buffer ); if ( it2 != ( *it ).end() ) string->setFormat( i - buffer.length(), buffer.length(), format( ( *it2 ) ), FALSE ); } |