summaryrefslogtreecommitdiffstats
path: root/kmail/templateparser.cpp
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 /kmail/templateparser.cpp
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 'kmail/templateparser.cpp')
-rw-r--r--kmail/templateparser.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kmail/templateparser.cpp b/kmail/templateparser.cpp
index 775d9a938..dab5665e0 100644
--- a/kmail/templateparser.cpp
+++ b/kmail/templateparser.cpp
@@ -126,7 +126,7 @@ TQString TemplateParser::getFName( const TQString &str )
// last resort -- return 'name' from 'name@domain'
int sep_pos;
TQString res;
- if ( ( sep_pos = str.tqfind( '@' ) ) > 0 ) {
+ if ( ( sep_pos = str.find( '@' ) ) > 0 ) {
int i;
for ( i = (sep_pos - 1); i >= 0; --i ) {
TQChar c = str[i];
@@ -136,7 +136,7 @@ TQString TemplateParser::getFName( const TQString &str )
break;
}
}
- } else if ( ( sep_pos = str.tqfind(',') ) > 0 ) {
+ } else if ( ( sep_pos = str.find(',') ) > 0 ) {
unsigned int i;
bool begin = false;
for ( i = sep_pos; i < str.length(); ++i ) {
@@ -169,7 +169,7 @@ TQString TemplateParser::getLName( const TQString &str )
// else format is 'First Last'
int sep_pos;
TQString res;
- if ( ( sep_pos = str.tqfind(',') ) > 0 ) {
+ if ( ( sep_pos = str.find(',') ) > 0 ) {
int i;
for ( i = sep_pos; i >= 0; --i ) {
TQChar c = str[i];
@@ -180,7 +180,7 @@ TQString TemplateParser::getLName( const TQString &str )
}
}
} else {
- if ( ( sep_pos = str.tqfind( ' ' ) ) > 0 ) {
+ if ( ( sep_pos = str.find( ' ' ) ) > 0 ) {
unsigned int i;
bool begin = false;
for ( i = sep_pos; i < str.length(); ++i ) {
@@ -963,7 +963,7 @@ void TemplateParser::addProcessedBodyToMessage( const TQString &body )
// Converting to a string here, since DwMediaType does not have a HasParameter() function
TQString ctStr = ct.AsString().c_str();
- if ( !ctStr.lower().tqcontains( "name=" ) && !ctStr.lower().tqcontains( "filename=" ) ) {
+ if ( !ctStr.lower().contains( "name=" ) && !ctStr.lower().contains( "filename=" ) ) {
DwParameter *nameParameter = new DwParameter;
nameParameter->SetAttribute( "name" );
nameParameter->SetValue( Util::dwString( KMMsgBase::encodeRFC2231StringAutoDetectCharset(