summaryrefslogtreecommitdiffstats
path: root/libkcal/vcalformat.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 /libkcal/vcalformat.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 'libkcal/vcalformat.cpp')
-rw-r--r--libkcal/vcalformat.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/libkcal/vcalformat.cpp b/libkcal/vcalformat.cpp
index 973f8c227..62cbf4cb4 100644
--- a/libkcal/vcalformat.cpp
+++ b/libkcal/vcalformat.cpp
@@ -270,7 +270,7 @@ VObject *VCalFormat::eventToVTodo(const Todo *anEvent)
if (!anEvent->description().isEmpty()) {
VObject *d = addPropValue(vtodo, VCDescriptionProp,
anEvent->description().local8Bit());
- if (anEvent->description().tqfind('\n') != -1)
+ if (anEvent->description().find('\n') != -1)
addPropValue(d, VCEncodingProp, VCQuotedPrintableProp);
}
@@ -530,7 +530,7 @@ VObject* VCalFormat::eventToVEvent(const Event *anEvent)
if (!anEvent->description().isEmpty()) {
VObject *d = addPropValue(vevent, VCDescriptionProp,
anEvent->description().local8Bit());
- if (anEvent->description().tqfind('\n') != -1)
+ if (anEvent->description().find('\n') != -1)
addPropValue(d, VCEncodingProp, VCQuotedPrintableProp);
}
@@ -701,19 +701,19 @@ Todo *VCalFormat::VTodoToEvent(VObject *vtodo)
deleteStr(s);
tmpStr = tmpStr.simplifyWhiteSpace();
int emailPos1, emailPos2;
- if ((emailPos1 = tmpStr.tqfind('<')) > 0) {
+ if ((emailPos1 = tmpStr.find('<')) > 0) {
// both email address and name
- emailPos2 = tmpStr.tqfindRev('>');
+ emailPos2 = tmpStr.findRev('>');
a = new Attendee(tmpStr.left(emailPos1 - 1),
tmpStr.mid(emailPos1 + 1,
emailPos2 - (emailPos1 + 1)));
- } else if (tmpStr.tqfind('@') > 0) {
+ } else if (tmpStr.find('@') > 0) {
// just an email address
a = new Attendee(0, tmpStr);
} else {
// just a name
// WTF??? Replacing the spaces of a name and using this as email?
- TQString email = tmpStr.tqreplace( ' ', '.' );
+ TQString email = tmpStr.replace( ' ', '.' );
a = new Attendee(tmpStr,email);
}
@@ -917,18 +917,18 @@ Event* VCalFormat::VEventToEvent(VObject *vevent)
deleteStr(s);
tmpStr = tmpStr.simplifyWhiteSpace();
int emailPos1, emailPos2;
- if ((emailPos1 = tmpStr.tqfind('<')) > 0) {
+ if ((emailPos1 = tmpStr.find('<')) > 0) {
// both email address and name
- emailPos2 = tmpStr.tqfindRev('>');
+ emailPos2 = tmpStr.findRev('>');
a = new Attendee(tmpStr.left(emailPos1 - 1),
tmpStr.mid(emailPos1 + 1,
emailPos2 - (emailPos1 + 1)));
- } else if (tmpStr.tqfind('@') > 0) {
+ } else if (tmpStr.find('@') > 0) {
// just an email address
a = new Attendee(0, tmpStr);
} else {
// just a name
- TQString email = tmpStr.tqreplace( ' ', '.' );
+ TQString email = tmpStr.replace( ' ', '.' );
a = new Attendee(tmpStr,email);
}
@@ -1012,8 +1012,8 @@ Event* VCalFormat::VEventToEvent(VObject *vevent)
// kdDebug() << " It's a supported type " << endl;
// Immediately after the type is the frequency
- int index = tmpStr.tqfind(' ');
- int last = tmpStr.tqfindRev(' ') + 1; // find last entry
+ int index = tmpStr.find(' ');
+ int last = tmpStr.findRev(' ') + 1; // find last entry
int rFreq = tmpStr.mid(typelen, (index-1)).toInt();
++index; // advance to beginning of stuff after freq
@@ -1086,7 +1086,7 @@ Event* VCalFormat::VEventToEvent(VObject *vevent)
else {
// e.g. MD1 3 #0
while (index < last) {
- int index2 = tmpStr.tqfind(' ', index);
+ int index2 = tmpStr.find(' ', index);
short tmpDay = tmpStr.mid(index, (index2-index)).toShort();
index = index2-1;
if (tmpStr.mid(index, 1) == "-")
@@ -1108,7 +1108,7 @@ Event* VCalFormat::VEventToEvent(VObject *vevent)
else {
// e.g. YM1 3 #0
while (index < last) {
- int index2 = tmpStr.tqfind(' ', index);
+ int index2 = tmpStr.find(' ', index);
short tmpMonth = tmpStr.mid(index, (index2-index)).toShort();
index = index2 + 1;
anEvent->recurrence()->addYearlyMonth( tmpMonth );
@@ -1127,7 +1127,7 @@ Event* VCalFormat::VEventToEvent(VObject *vevent)
else {
// e.g. YD1 123 #0
while (index < last) {
- int index2 = tmpStr.tqfind(' ', index);
+ int index2 = tmpStr.find(' ', index);
short tmpDay = tmpStr.mid(index, (index2-index)).toShort();
index = index2+1;
anEvent->recurrence()->addYearlyDay( tmpDay );
@@ -1146,7 +1146,7 @@ Event* VCalFormat::VEventToEvent(VObject *vevent)
int rDuration = tmpStr.mid(index, tmpStr.length()-index).toInt();
if ( rDuration > 0 )
anEvent->recurrence()->setDuration( rDuration );
- } else if ( tmpStr.tqfind('T', index) != -1 ) {
+ } else if ( tmpStr.find('T', index) != -1 ) {
TQDate rEndDate = (ISOToTQDateTime(tmpStr.mid(index, tmpStr.length()-index))).date();
anEvent->recurrence()->setEndDateTime( rEndDate );
}