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 | d8762de95349dc6edaa34db9bf699b367c1af6b1 (patch) | |
tree | 8c76a6ab8e4e92d13196cb11ddab2d0fb64ec680 /kmplot/kmplot/parser.cpp | |
parent | 03458c4e2ca2e92deafe078d0e09e1acd4c4765f (diff) | |
download | tdeedu-d8762de95349dc6edaa34db9bf699b367c1af6b1.tar.gz tdeedu-d8762de95349dc6edaa34db9bf699b367c1af6b1.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmplot/kmplot/parser.cpp')
-rw-r--r-- | kmplot/kmplot/parser.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kmplot/kmplot/parser.cpp b/kmplot/kmplot/parser.cpp index 9ccf7b5a..e47feaa8 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.tqcontains('y')!=0) + if ( str.contains('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.tqfind('('); - int p2=str.tqfind(','); - const int p3=str.tqfind(")="); + const int p1=str.find('('); + int p2=str.find(','); + const int p3=str.find(")="); 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.tqfind('('); - int p2=str.tqfind(','); - const int p3=str.tqfind(")="); + const int p1=str.find('('); + int p2=str.find(','); + const int p3=str.find(")="); 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.tqreplace(m_decimalsymbol, "."); //replace the locale decimal symbol with a '.' + str_end = str_end.replace(m_decimalsymbol, "."); //replace the locale decimal symbol with a '.' str.truncate(pos); str.append(str_end); //kdDebug() << "str:" << str << endl; @@ -1006,7 +1006,7 @@ int Parser::parserError(bool showMessageBox) TQString Parser::number( double value ) { TQString str = TQString::number( value, 'g', 6 ); - str.tqreplace( 'e', "*10^" ); + str.replace( 'e', "*10^" ); // kDebug() << "returning str="<<str<<endl; return str; } |