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 | 551fb6d0d8c5d2ed90363a1017816d252b03d9bd (patch) | |
tree | 80f1396a23fdc417726dcf1d8b4b3aba82588068 /src/numerictypes.cpp | |
parent | 1b7882c63e0e5e7926595444122726270617279b (diff) | |
download | abakus-551fb6d0d8c5d2ed90363a1017816d252b03d9bd.tar.gz abakus-551fb6d0d8c5d2ed90363a1017816d252b03d9bd.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/abakus@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/numerictypes.cpp')
-rw-r--r-- | src/numerictypes.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/numerictypes.cpp b/src/numerictypes.cpp index c75268e..b7d607d 100644 --- a/src/numerictypes.cpp +++ b/src/numerictypes.cpp @@ -72,7 +72,7 @@ TQString convertToString(const mpfr_ptr &number) // Remove trailing zeroes. if(Abakus::m_prec < 0) - r.tqreplace(zeroKiller, ""); + r.replace(zeroKiller, ""); // But don't display numbers like 2.e10 either. if(r.isEmpty()) @@ -124,7 +124,7 @@ TQString convertToString(const mpfr_ptr &number) } // Remove trailing zeroes. - r.tqreplace(zeroKiller, ""); + r.replace(zeroKiller, ""); // Don't display numbers of the form .23 if(l.isEmpty()) @@ -176,7 +176,7 @@ TQString convertToString(const HNumber &num) { TQString str = HMath::formatGenString(num, m_prec); TQString decimalSymbol = KGlobal::locale()->decimalSymbol(); - str.tqreplace('.', decimalSymbol); + str.replace('.', decimalSymbol); TQStringList parts = TQStringList::split("e", str); TQRegExp zeroKiller("(" + TQRegExp::escape(decimalSymbol) + @@ -184,8 +184,8 @@ TQString convertToString(const HNumber &num) TQRegExp zeroKiller2("(" + TQRegExp::escape(decimalSymbol) + ")0*$"); str = parts[0]; - str.tqreplace(zeroKiller, "\\1"); - str.tqreplace(zeroKiller2, "\\1"); + str.replace(zeroKiller, "\\1"); + str.replace(zeroKiller2, "\\1"); if(str.endsWith(decimalSymbol)) str.truncate(str.length() - 1); // Remove trailing period. |