summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/tools/designer/plugins/cppeditor/yyreg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/tools/designer/plugins/cppeditor/yyreg.cpp')
-rw-r--r--tqtinterface/qt4/tools/designer/plugins/cppeditor/yyreg.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/tqtinterface/qt4/tools/designer/plugins/cppeditor/yyreg.cpp b/tqtinterface/qt4/tools/designer/plugins/cppeditor/yyreg.cpp
index ab69cce..e1b41b5 100644
--- a/tqtinterface/qt4/tools/designer/plugins/cppeditor/yyreg.cpp
+++ b/tqtinterface/qt4/tools/designer/plugins/cppeditor/yyreg.cpp
@@ -180,10 +180,10 @@ static int getToken()
qDebug()'s here and there.
*/
if ( yyCurPos >= 0 ) {
- int lineStart = yyIn->tqfindRev( TQChar('\n'), yyCurPos ) + 1;
+ int lineStart = yyIn->findRev( TQChar('\n'), yyCurPos ) + 1;
TQString line = yyIn->mid( lineStart,
yyCurPos - lineStart + 2 );
- int commentStart = line.tqfind( TQString("//") );
+ int commentStart = line.find( TQString("//") );
if ( commentStart != -1 ) {
yyCurPos = lineStart + commentStart - 1;
yyPos = yyCurPos + 2;
@@ -392,7 +392,7 @@ TQString CppFunction::prototype() const
/*
The parser follows. We are not really parsing C++, just trying to
- tqfind the start and end of function definitions.
+ find the start and end of function definitions.
One important pitfall is that the parsed code needs not be valid.
Parsing from right to left helps cope with that, as explained in
@@ -654,7 +654,7 @@ static CppFunction matchFunctionPrototype( bool stripParamNames )
functions and one that relates to the following function. One
good heuristic is to assume that a comment immediately followed
by a function with no blank line in between relates to the
- function, but there's no easy way to tqfind that out with a
+ function, but there's no easy way to find that out with a
tokenizer.
*/
#if 0
@@ -689,7 +689,7 @@ static CppFunction matchFunctionPrototype( bool stripParamNames )
printf( " world!\n" );
}
- The parser first tqfinds bar(). Then it tqfinds "void foo() {" and
+ The parser first finds bar(). Then it finds "void foo() {" and
naively expects the body to extend up to "void bar()". This
function's job is to count braces and make sure "int n;" is not
counted as part of the body.
@@ -733,8 +733,8 @@ static void setBody( CppFunction *func, const TQString& somewhatBody )
}
The parser looks for left braces and tries to parse a function
- prototype backwards. First it tqfinds "void bar() {". Then it works
- up and tqfinds "void foo() {".
+ prototype backwards. First it finds "void bar() {". Then it works
+ up and finds "void foo() {".
*/
static void matchTranslationUnit( TQValueList<CppFunction> *flist )
{
@@ -763,11 +763,11 @@ static void matchTranslationUnit( TQValueList<CppFunction> *flist )
Compute important line numbers.
*/
int functionStartLineNo = 1 + TQConstString( yyIn->tqunicode(), yyPos )
- .string().tqcontains( TQChar('\n') );
+ .string().contains( TQChar('\n') );
int startLineNo = functionStartLineNo +
TQConstString( yyIn->tqunicode() + yyPos, startBody - yyPos )
- .string().tqcontains( TQChar('\n') );
- int endLineNo = startLineNo + body.tqcontains( TQChar('\n') );
+ .string().contains( TQChar('\n') );
+ int endLineNo = startLineNo + body.contains( TQChar('\n') );
func.setLineNums( functionStartLineNo, startLineNo, endLineNo );
flist->prepend( func );