summaryrefslogtreecommitdiffstats
path: root/kexi/kexidb/driver.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
commitb6edfe41c9395f2e20784cbf0e630af6426950a3 (patch)
tree56ed9b871d4296e6c15949c24e16420be1b28697 /kexi/kexidb/driver.cpp
parentef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff)
downloadkoffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz
koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/kexidb/driver.cpp')
-rw-r--r--kexi/kexidb/driver.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kexi/kexidb/driver.cpp b/kexi/kexidb/driver.cpp
index d192fe87..da77ab72 100644
--- a/kexi/kexidb/driver.cpp
+++ b/kexi/kexidb/driver.cpp
@@ -237,7 +237,7 @@ bool Driver::isKexiDBSystemObjectName( const TQString& n )
if (!n.lower().startsWith("kexi__"))
return false;
const TQStringList list( Connection::kexiDBSystemTableNames() );
- return list.tqfind(n.lower())!=list.constEnd();
+ return list.find(n.lower())!=list.constEnd();
}
bool Driver::isSystemFieldName( const TQString& n ) const
@@ -255,7 +255,7 @@ TQString Driver::valueToSQL( uint ftype, const TQVariant& v ) const
case Field::Text:
case Field::LongText: {
TQString s = v.toString();
- return escapeString(s); //TQString("'")+s.tqreplace( '"', "\\\"" ) + "'";
+ return escapeString(s); //TQString("'")+s.replace( '"', "\\\"" ) + "'";
}
case Field::Byte:
case Field::ShortInteger:
@@ -267,7 +267,7 @@ TQString Driver::valueToSQL( uint ftype, const TQVariant& v ) const
if (v.type()==TQVariant::String) {
//workaround for values stored as string that should be casted to floating-point
TQString s(v.toString());
- return s.tqreplace(',', ".");
+ return s.replace(',', ".");
}
return v.toString();
}
@@ -333,21 +333,21 @@ TQCString Driver::escapeIdentifier(const TQCString& str, int options) const
needOuterQuotes = true;
// ... or if it's a keyword in Kexi's SQL dialect,
- else if(d->kexiSQLDict->tqfind(str))
+ else if(d->kexiSQLDict->find(str))
needOuterQuotes = true;
// ... or if it's a keyword in the backends SQL dialect,
// (have already checked !d->driverSQLDict)
- else if((options & EscapeDriver) && d->driverSQLDict->tqfind(str))
+ else if((options & EscapeDriver) && d->driverSQLDict->find(str))
needOuterQuotes = true;
// ... or if the identifier has a space in it...
- else if(str.tqfind(' ') != -1)
+ else if(str.find(' ') != -1)
needOuterQuotes = true;
if(needOuterQuotes && (options & EscapeKexi)) {
const char quote = '"';
- return quote + TQCString(str).tqreplace( quote, "\"\"" ) + quote;
+ return quote + TQCString(str).replace( quote, "\"\"" ) + quote;
}
else if (needOuterQuotes) {
const char quote = beh->TQUOTATION_MARKS_FOR_IDENTIFIER.latin1();