summaryrefslogtreecommitdiffstats
path: root/kioslaves/imap4/imapparser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kioslaves/imap4/imapparser.cc')
-rw-r--r--kioslaves/imap4/imapparser.cc36
1 files changed, 18 insertions, 18 deletions
diff --git a/kioslaves/imap4/imapparser.cc b/kioslaves/imap4/imapparser.cc
index 37ae46caa..3e16e262d 100644
--- a/kioslaves/imap4/imapparser.cc
+++ b/kioslaves/imap4/imapparser.cc
@@ -122,7 +122,7 @@ imapParser::sendCommand (imapCommand * aCmd)
// we no longer have a box open
currentBox = TQString();
}
- else if (command.tqfind ("SEARCH") != -1
+ else if (command.find ("SEARCH") != -1
|| command == "GETACL"
|| command == "LISTRIGHTS"
|| command == "MYRIGHTS"
@@ -544,7 +544,7 @@ imapParser::parseResult (TQByteArray & result, parseString & rest,
case 'A': // ALERT
if (option == "ALERT")
{
- rest.pos = rest.data.tqfind(']', rest.pos) + 1;
+ rest.pos = rest.data.find(']', rest.pos) + 1;
// The alert text is after [ALERT].
// Is this correct or do we need to care about litterals?
selectInfo.setAlert( rest.cstr() );
@@ -563,7 +563,7 @@ imapParser::parseResult (TQByteArray & result, parseString & rest,
}
else if (option == "PERMANENTFLAGS")
{
- uint end = rest.data.tqfind(']', rest.pos);
+ uint end = rest.data.find(']', rest.pos);
TQCString flags(rest.data.data() + rest.pos, end - rest.pos);
selectInfo.setPermanentFlags (flags);
rest.pos = end;
@@ -1406,8 +1406,8 @@ void imapParser::parseBody (parseString & inWords)
else
{
TQCString references = parseLiteralC(inWords, true);
- int start = references.tqfind ('<');
- int end = references.tqfindRev ('>');
+ int start = references.find ('<');
+ int end = references.findRev ('>');
if (start < end)
references = references.mid (start, end - start + 1);
envelope->setReferences(references.simplifyWhiteSpace());
@@ -1420,7 +1420,7 @@ void imapParser::parseBody (parseString & inWords)
}
else
{
- if (specifier.tqfind(".MIME") != -1)
+ if (specifier.find(".MIME") != -1)
{
mailHeader *envelope = new mailHeader;
TQString theHeader = parseLiteralC(inWords, false);
@@ -1573,7 +1573,7 @@ void imapParser::parseFetch (ulong /* value */, parseString & inWords)
if (!lastHandled) lastHandled = new imapCache();
lastHandled->setSize (size);
}
- else if (word.tqfind ("RFC822") == 0)
+ else if (word.find ("RFC822") == 0)
{
// might be RFC822 RFC822.TEXT RFC822.HEADER
parseLiteralC(inWords, true);
@@ -1675,7 +1675,7 @@ void imapParser::parseNamespace (parseString & result)
return;
TQString delimEmpty;
- if ( namespaceToDelimiter.tqcontains( TQString() ) )
+ if ( namespaceToDelimiter.contains( TQString() ) )
delimEmpty = namespaceToDelimiter[TQString()];
namespaceToDelimiter.clear();
@@ -1855,7 +1855,7 @@ imapParser::parseURL (const KURL & _url, TQString & _box, TQString & _section,
_box = _url.path ();
kdDebug(7116) << "imapParser::parseURL " << _box << endl;
- int paramStart = _box.tqfind("/;");
+ int paramStart = _box.find("/;");
if ( paramStart > -1 )
{
TQString paramString = _box.right( _box.length() - paramStart-2 );
@@ -1868,24 +1868,24 @@ imapParser::parseURL (const KURL & _url, TQString & _box, TQString & _section,
{
TQString temp = (*it);
- int pt = temp.tqfind ('/');
+ int pt = temp.find ('/');
if (pt > 0)
{
- if (temp.tqfindRev ('"', pt) == -1 || temp.tqfind('"', pt) == -1)
+ if (temp.findRev ('"', pt) == -1 || temp.find('"', pt) == -1)
{
// if we have non-quoted '/' separator we'll just nuke it
temp.truncate(pt);
}
}
- if (temp.tqfind ("section=", 0, false) == 0)
+ if (temp.find ("section=", 0, false) == 0)
_section = temp.right (temp.length () - 8);
- else if (temp.tqfind ("type=", 0, false) == 0)
+ else if (temp.find ("type=", 0, false) == 0)
_type = temp.right (temp.length () - 5);
- else if (temp.tqfind ("uid=", 0, false) == 0)
+ else if (temp.find ("uid=", 0, false) == 0)
_uid = temp.right (temp.length () - 4);
- else if (temp.tqfind ("uidvalidity=", 0, false) == 0)
+ else if (temp.find ("uidvalidity=", 0, false) == 0)
_validity = temp.right (temp.length () - 12);
- else if (temp.tqfind ("info=", 0, false) == 0)
+ else if (temp.find ("info=", 0, false) == 0)
_info = temp.right (temp.length () - 5);
}
// kdDebug(7116) << "URL: section= " << _section << ", type= " << _type << ", uid= " << _uid << endl;
@@ -1911,7 +1911,7 @@ TQCString imapParser::parseLiteralC(parseString & inWords, bool relay, bool stop
if (!inWords.isEmpty() && inWords[0] == '{')
{
TQCString retVal;
- ulong runLen = inWords.tqfind ('}', 1);
+ ulong runLen = inWords.find ('}', 1);
if (runLen > 0)
{
bool proper;
@@ -2076,7 +2076,7 @@ TQString imapParser::namespaceForBox( const TQString & box )
TQString cleanPrefix;
for ( TQValueList<TQString>::Iterator it = list.begin(); it != list.end(); ++it )
{
- if ( !(*it).isEmpty() && box.tqfind( *it ) != -1 )
+ if ( !(*it).isEmpty() && box.find( *it ) != -1 )
return (*it);
}
}