summaryrefslogtreecommitdiffstats
path: root/kmail/kmmsgpart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kmmsgpart.cpp')
-rw-r--r--kmail/kmmsgpart.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kmail/kmmsgpart.cpp b/kmail/kmmsgpart.cpp
index 9e71f285..447993db 100644
--- a/kmail/kmmsgpart.cpp
+++ b/kmail/kmmsgpart.cpp
@@ -45,7 +45,7 @@ KMMessagePart::KMMessagePart( TQDataStream & stream )
KPIM::kAsciiToUpper( mOriginalContentTypeStr.data() );
// set the type
- int sep = mOriginalContentTypeStr.tqfind('/');
+ int sep = mOriginalContentTypeStr.find('/');
mType = mOriginalContentTypeStr.left(sep);
mSubtype = mOriginalContentTypeStr.mid(sep+1);
@@ -406,7 +406,7 @@ TQCString KMMessagePart::bodyDecoded(void) const
//kdWarning( result.length() != (unsigned int)len, 5006 )
// << "KMMessagePart::bodyDecoded(): body is binary but used as text!" << endl;
- result = result.tqreplace( "\r\n", "\n" ); // CRLF -> LF conversion
+ result = result.replace( "\r\n", "\n" ); // CRLF -> LF conversion
assert( mBodyDecodedSize < 0 || mBodyDecodedSize == len );
if ( mBodyDecodedSize < 0 )
@@ -425,7 +425,7 @@ void KMMessagePart::magicSetType(bool aAutoDecode)
KMimeMagicResult * result = KMimeMagic::self()->findBufferType( body );
TQString mimetype = result->mimeType();
- const int sep = mimetype.tqfind('/');
+ const int sep = mimetype.find('/');
mType = mimetype.left(sep).latin1();
mSubtype = mimetype.mid(sep+1).latin1();
}
@@ -558,7 +558,7 @@ TQString KMMessagePart::fileName(void) const
// Allow for multiple filname*0, filename*1, ... params (defined by RFC 2231)
// in the Content-Disposision
- if ( mContentDisposition.tqcontains( "filename*", false ) ) {
+ if ( mContentDisposition.contains( "filename*", false ) ) {
// It's RFC 2231 encoded, so extract the file name with the 2231 method
str = KMMsgBase::extractRFC2231HeaderField( mContentDisposition, "filename" );
@@ -568,7 +568,7 @@ TQString KMMessagePart::fileName(void) const
// Standard RFC 2047-encoded
// search the start of the filename
- int startOfFilename = mContentDisposition.tqfind("filename=", 0, false);
+ int startOfFilename = mContentDisposition.find("filename=", 0, false);
if (startOfFilename < 0)
return TQString();
startOfFilename += 9;
@@ -577,10 +577,10 @@ TQString KMMessagePart::fileName(void) const
int endOfFilename;
if ( '"' == mContentDisposition[startOfFilename] ) {
startOfFilename++; // the double quote isn't part of the filename
- endOfFilename = mContentDisposition.tqfind('"', startOfFilename) - 1;
+ endOfFilename = mContentDisposition.find('"', startOfFilename) - 1;
}
else {
- endOfFilename = mContentDisposition.tqfind(';', startOfFilename) - 1;
+ endOfFilename = mContentDisposition.find(';', startOfFilename) - 1;
}
if (endOfFilename < 0)
endOfFilename = 32767;