summaryrefslogtreecommitdiffstats
path: root/kmplot/kmplot/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmplot/kmplot/parser.cpp')
-rw-r--r--kmplot/kmplot/parser.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kmplot/kmplot/parser.cpp b/kmplot/kmplot/parser.cpp
index ed064b85..2b10f31c 100644
--- a/kmplot/kmplot/parser.cpp
+++ b/kmplot/kmplot/parser.cpp
@@ -190,7 +190,7 @@ double Parser::eval(TQString str)
fix_expression(str,0);
- if ( str.contains('y')!=0)
+ if ( str.tqcontains('y')!=0)
{
err=9;
delete []stack;
@@ -347,9 +347,9 @@ int Parser::addfkt(TQString str)
stkptr=stack=0;
err=0;
errpos=1;
- const int p1=str.find('(');
- int p2=str.find(',');
- const int p3=str.find(")=");
+ const int p1=str.tqfind('(');
+ int p2=str.tqfind(',');
+ const int p3=str.tqfind(")=");
fix_expression(str,p1+4);
if(p1==-1 || p3==-1 || p1>p3)
@@ -435,9 +435,9 @@ void Parser::reparse(Ufkt *item)
err=0;
errpos=1;
- const int p1=str.find('(');
- int p2=str.find(',');
- const int p3=str.find(")=");
+ const int p1=str.tqfind('(');
+ int p2=str.tqfind(',');
+ const int p3=str.tqfind(")=");
fix_expression(str,p1+4);
@@ -520,7 +520,7 @@ void Parser::fix_expression(TQString &str, int const pos)
}
}
TQString str_end = str.mid(pos);
- str_end = str_end.replace(m_decimalsymbol, "."); //replace the locale decimal symbol with a '.'
+ str_end = str_end.tqreplace(m_decimalsymbol, "."); //replace the locale decimal symbol with a '.'
str.truncate(pos);
str.append(str_end);
//kdDebug() << "str:" << str << endl;
@@ -959,33 +959,33 @@ int Parser::parserError(bool showMessageBox)
switch(err)
{
case 1: KMessageBox::error(0, i18n("Parser error at position %1:\n"
- "Syntax error").arg(TQString::number(errpos)), "KmPlot");
+ "Syntax error").tqarg(TQString::number(errpos)), "KmPlot");
break;
case 2: KMessageBox::error(0, i18n("Parser error at position %1:\n"
- "Missing parenthesis").arg(TQString::number(errpos)), "KmPlot");
+ "Missing tqparenthesis").tqarg(TQString::number(errpos)), "KmPlot");
break;
case 3: KMessageBox::error(0, i18n("Parser error at position %1:\n"
- "Function name unknown").arg(TQString::number(errpos)), "KmPlot");
+ "Function name unknown").tqarg(TQString::number(errpos)), "KmPlot");
break;
case 4: KMessageBox::error(0, i18n("Parser error at position %1:\n"
- "Void function variable").arg(TQString::number(errpos)), "KmPlot");
+ "Void function variable").tqarg(TQString::number(errpos)), "KmPlot");
break;
case 5: KMessageBox::error(0, i18n("Parser error at position %1:\n"
- "Too many functions").arg(TQString::number(errpos)), "KmPlot");
+ "Too many functions").tqarg(TQString::number(errpos)), "KmPlot");
break;
case 6: KMessageBox::error(0, i18n("Parser error at position %1:\n"
- "Token-memory overflow").arg(TQString::number(errpos)), "KmPlot");
+ "Token-memory overflow").tqarg(TQString::number(errpos)), "KmPlot");
break;
case 7: KMessageBox::error(0, i18n("Parser error at position %1:\n"
- "Stack overflow").arg(TQString::number(errpos)), "KmPlot");
+ "Stack overflow").tqarg(TQString::number(errpos)), "KmPlot");
break;
case 8: KMessageBox::error(0, i18n("Parser error at position %1:\n"
- "Name of function not free.").arg(TQString::number(errpos)), "KmPlot");
+ "Name of function not free.").tqarg(TQString::number(errpos)), "KmPlot");
break;
case 9: KMessageBox::error(0, i18n("Parser error at position %1:\n"
- "recursive function not allowed.").arg(TQString::number(errpos)), "KmPlot");
+ "recursive function not allowed.").tqarg(TQString::number(errpos)), "KmPlot");
break;
- case 10: KMessageBox::error(0, i18n("Could not find a defined constant at position %1." ).arg(TQString::number(errpos)),
+ case 10: KMessageBox::error(0, i18n("Could not find a defined constant at position %1." ).tqarg(TQString::number(errpos)),
"KmPlot");
break;
case 11: KMessageBox::error(0, i18n("Empty function"), "KmPlot");
@@ -1006,7 +1006,7 @@ int Parser::parserError(bool showMessageBox)
TQString Parser::number( double value )
{
TQString str = TQString::number( value, 'g', 6 );
- str.replace( 'e', "*10^" );
+ str.tqreplace( 'e', "*10^" );
// kDebug() << "returning str="<<str<<endl;
return str;
}