summaryrefslogtreecommitdiffstats
path: root/kioslaves/imap4/mimeheader.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit4c6f8d69e2d1501837affb472c4eb8fec4462240 (patch)
tree766a8ad7939fcf3eec534184c36bd0e0f80489e2 /kioslaves/imap4/mimeheader.cc
parent469cc56a805bd3d6940d54adbef554877c29853c (diff)
downloadtdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.tar.gz
tdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslaves/imap4/mimeheader.cc')
-rw-r--r--kioslaves/imap4/mimeheader.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/kioslaves/imap4/mimeheader.cc b/kioslaves/imap4/mimeheader.cc
index d32f7eaca..048eba7a5 100644
--- a/kioslaves/imap4/mimeheader.cc
+++ b/kioslaves/imap4/mimeheader.cc
@@ -168,7 +168,7 @@ mimeHeader::addParameter (const TQCString& aParameter, TQDict < TQString > *aLis
TQString *aValue;
TQCString aLabel;
- int pos = aParameter.tqfind ('=');
+ int pos = aParameter.find ('=');
// cout << aParameter.left(pos).data();
aValue = new TQString ();
aValue->setLatin1 (aParameter.right (aParameter.length () - pos - 1));
@@ -268,11 +268,11 @@ mimeHeader::getParameter (const TQCString& aStr, TQDict < TQString > *aDict)
if (aDict)
{
//see if it is a normal parameter
- found = aDict->tqfind (aStr);
+ found = aDict->find (aStr);
if (!found)
{
//might be a continuated or encoded parameter
- found = aDict->tqfind (aStr + "*");
+ found = aDict->find (aStr + "*");
if (!found)
{
//continuated parameter
@@ -284,10 +284,10 @@ mimeHeader::getParameter (const TQCString& aStr, TQDict < TQString > *aDict)
TQCString search;
search.setNum (part);
search = aStr + "*" + search;
- found = aDict->tqfind (search);
+ found = aDict->find (search);
if (!found)
{
- found = aDict->tqfind (search + "*");
+ found = aDict->find (search + "*");
if (found)
encoded += rfcDecoder::encodeRFC2231String (*found);
}
@@ -298,7 +298,7 @@ mimeHeader::getParameter (const TQCString& aStr, TQDict < TQString > *aDict)
part++;
}
while (found);
- if (encoded.tqfind ('\'') >= 0)
+ if (encoded.find ('\'') >= 0)
{
retVal = rfcDecoder::decodeRFC2231String (encoded.local8Bit ());
}
@@ -335,7 +335,7 @@ mimeHeader::setParameter (const TQCString& aLabel, const TQString& aValue,
{
//see if it needs to get encoded
- if (encoded && aLabel.tqfind ('*') == -1)
+ if (encoded && aLabel.find ('*') == -1)
{
val = rfcDecoder::encodeRFC2231String (aValue);
}
@@ -412,7 +412,7 @@ mimeHeader::outputParameter (TQDict < TQString > *aDict)
while (it.current ())
{
retVal += (";\n\t" + it.currentKey () + "=").latin1 ();
- if (it.current ()->tqfind (' ') > 0 || it.current ()->tqfind (';') > 0)
+ if (it.current ()->find (' ') > 0 || it.current ()->find (';') > 0)
{
retVal += '"' + it.current ()->utf8 () + '"';
}
@@ -527,7 +527,7 @@ mimeHeader::parseBody (mimeIO & useIO, TQCString & messageBody,
retVal = 1; //continue with next part
break;
}
- else if (mbox && inputStr.tqfind ("From ") == 0)
+ else if (mbox && inputStr.find ("From ") == 0)
{
retVal = 0; // end of mbox
break;
@@ -556,7 +556,7 @@ mimeHeader::parseHeader (mimeIO & useIO)
while (useIO.inputLine (inputStr))
{
int appended;
- if (inputStr.tqfind ("From ") != 0 || !first)
+ if (inputStr.find ("From ") != 0 || !first)
{
first = false;
appended = my_line.appendStr (inputStr);
@@ -584,7 +584,7 @@ mimeHeader *
mimeHeader::bodyPart (const TQString & _str)
{
// see if it is nested a little deeper
- int pt = _str.tqfind('.');
+ int pt = _str.find('.');
if (pt != -1)
{
TQString tempStr = _str;
@@ -658,9 +658,9 @@ mimeHeader::bodyDecodedBinary ()
{
TQByteArray retVal;
- if (contentEncoding.tqfind ("quoted-printable", 0, false) == 0)
+ if (contentEncoding.find ("quoted-printable", 0, false) == 0)
retVal = KCodecs::quotedPrintableDecode(postMultipartBody);
- else if (contentEncoding.tqfind ("base64", 0, false) == 0)
+ else if (contentEncoding.find ("base64", 0, false) == 0)
KCodecs::base64Decode(postMultipartBody, retVal);
else retVal = postMultipartBody;
@@ -680,9 +680,9 @@ mimeHeader::setBodyEncoded (const TQByteArray & _arr)
TQByteArray setVal;
kdDebug(7116) << "mimeHeader::setBodyEncoded - in size " << _arr.size () << endl;
- if (contentEncoding.tqfind ("quoted-printable", 0, false) == 0)
+ if (contentEncoding.find ("quoted-printable", 0, false) == 0)
setVal = KCodecs::quotedPrintableEncode(_arr);
- else if (contentEncoding.tqfind ("base64", 0, false) == 0)
+ else if (contentEncoding.find ("base64", 0, false) == 0)
KCodecs::base64Encode(_arr, setVal);
else
setVal.duplicate (_arr);