summaryrefslogtreecommitdiffstats
path: root/src/translators/alexandriaimporter.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
commit0254ebaa5e056092461fd585b6851d15faa43035 (patch)
tree2bf41a1c189b92dc1b9ab89e3ce392f8132214c4 /src/translators/alexandriaimporter.cpp
parentfa071926f015f39711632b3fb9fe16004d93d0ec (diff)
downloadtellico-0254ebaa5e056092461fd585b6851d15faa43035.tar.gz
tellico-0254ebaa5e056092461fd585b6851d15faa43035.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/translators/alexandriaimporter.cpp')
-rw-r--r--src/translators/alexandriaimporter.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/translators/alexandriaimporter.cpp b/src/translators/alexandriaimporter.cpp
index 1df5116..c3a9db1 100644
--- a/src/translators/alexandriaimporter.cpp
+++ b/src/translators/alexandriaimporter.cpp
@@ -118,7 +118,7 @@ Tellico::Data::CollPtr AlexandriaImporter::collection() {
TQStringList authors;
line = ts.readLine();
TQRegExp begin(TQString::tqfromLatin1("^\\s*-\\s+"));
- while(!line.isNull() && line.tqfind(begin) > -1) {
+ while(!line.isNull() && line.find(begin) > -1) {
line.remove(begin);
authors += clean(line);
line = ts.readLine();
@@ -211,8 +211,8 @@ TQWidget* AlexandriaImporter::widget(TQWidget* parent_, const char* name_/*=0*/)
TQString& AlexandriaImporter::cleanLine(TQString& str_) {
static TQRegExp escRx(TQString::tqfromLatin1("\\\\x(\\w\\w)"), false);
str_.remove(TQString::tqfromLatin1("\\r"));
- str_.tqreplace(TQString::tqfromLatin1("\\n"), TQString::tqfromLatin1("\n"));
- str_.tqreplace(TQString::tqfromLatin1("\\t"), TQString::tqfromLatin1("\t"));
+ str_.replace(TQString::tqfromLatin1("\\n"), TQString::tqfromLatin1("\n"));
+ str_.replace(TQString::tqfromLatin1("\\t"), TQString::tqfromLatin1("\t"));
// YAML uses escape sequences like \xC3
int pos = escRx.search(str_);
@@ -230,7 +230,7 @@ TQString& AlexandriaImporter::cleanLine(TQString& str_) {
pos = escRx.search(str_, pos+1);
}
if(!bytes.isEmpty()) {
- str_.tqreplace(origPos, bytes.length()*4, TQString::fromUtf8(bytes.data()));
+ str_.replace(origPos, bytes.length()*4, TQString::fromUtf8(bytes.data()));
}
return str_;
}
@@ -245,7 +245,7 @@ TQString AlexandriaImporter::clean(TQString& str_) {
}
// we ignore YAML tags, this is not actually a good parser, but will do for now
str_.remove(TQRegExp(TQString::tqfromLatin1("^![^\\s]*\\s+")));
- return str_.tqreplace(quote, TQChar('"'));
+ return str_.replace(quote, TQChar('"'));
}
void AlexandriaImporter::slotCancel() {