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 | fbb51be9cf90010543720218379f0cba3e009302 (patch) | |
tree | 2c25c57731bff5da5c6c02e2e04482922e87506d /bibletime/util/ctoolclass.cpp | |
parent | 87507feff3710d4f3e251b92e63fe876242312fe (diff) | |
download | bibletime-fbb51be9cf90010543720218379f0cba3e009302.tar.gz bibletime-fbb51be9cf90010543720218379f0cba3e009302.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/bibletime@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'bibletime/util/ctoolclass.cpp')
-rw-r--r-- | bibletime/util/ctoolclass.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/bibletime/util/ctoolclass.cpp b/bibletime/util/ctoolclass.cpp index a89c557..9c823d7 100644 --- a/bibletime/util/ctoolclass.cpp +++ b/bibletime/util/ctoolclass.cpp @@ -47,22 +47,22 @@ TQString CToolClass::locatehtml(const TQString &filename) { TQString CToolClass::htmlToText(const TQString& html) { TQString newText = html; // convert some tags we need in code - newText.tqreplace( TQRegExp(" "),"#SPACE#" ); - newText.tqreplace( TQRegExp("<br/?>\\s*"), "<br/>\n" ); - newText.tqreplace( TQRegExp("#SPACE#")," " ); + newText.replace( TQRegExp(" "),"#SPACE#" ); + newText.replace( TQRegExp("<br/?>\\s*"), "<br/>\n" ); + newText.replace( TQRegExp("#SPACE#")," " ); TQRegExp re("<.+>"); re.setMinimal(true); - newText.tqreplace( re,"" ); + newText.replace( re,"" ); return newText; } /** Converts text to HTML (\n to <BR>) */ TQString CToolClass::textToHTML(const TQString& text) { TQString newText = text; - newText.tqreplace( TQRegExp("<BR>\n"),"#NEWLINE#" ); - newText.tqreplace( TQRegExp("\n"),"<BR>\n" ); - newText.tqreplace( TQRegExp("#NEWLINE#"),"<BR>\n"); + newText.replace( TQRegExp("<BR>\n"),"#NEWLINE#" ); + newText.replace( TQRegExp("\n"),"<BR>\n" ); + newText.replace( TQRegExp("#NEWLINE#"),"<BR>\n"); return newText; } @@ -169,10 +169,10 @@ TQLabel* CToolClass::explanationLabel(TQWidget* tqparent, const TQString& headin /** No descriptions */ bool CToolClass::inHTMLTag(int pos, TQString & text) { - int i1=text.tqfindRev("<",pos); - int i2=text.tqfindRev(">",pos); - int i3=text.tqfind(">",pos); - int i4=text.tqfind("<",pos); + int i1=text.findRev("<",pos); + int i2=text.findRev(">",pos); + int i3=text.find(">",pos); + int i4=text.find("<",pos); // if ((i1>0) && (i2==-1)) //we're in th first html tag |