summaryrefslogtreecommitdiffstats
path: root/src/translators/amcimporter.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/amcimporter.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/amcimporter.cpp')
-rw-r--r--src/translators/amcimporter.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/translators/amcimporter.cpp b/src/translators/amcimporter.cpp
index d988d55..0209ddc 100644
--- a/src/translators/amcimporter.cpp
+++ b/src/translators/amcimporter.cpp
@@ -65,7 +65,7 @@ Tellico::Data::CollPtr AMCImporter::collection() {
m_ds.readRawBytes(buffer.data(), l);
TQString version = TQString::fromLocal8Bit(buffer, l);
TQRegExp versionRx(TQString::tqfromLatin1(".+AMC_(\\d+)\\.(\\d+).+"));
- if(version.tqfind(versionRx) == -1) {
+ if(version.find(versionRx) == -1) {
myDebug() << "AMCImporter::collection() - no file id match" << endl;
return 0;
}
@@ -198,7 +198,7 @@ void AMCImporter::readEntry() {
s = readString();
TQRegExp roleRx(TQString::tqfromLatin1("(.+) \\(([^(]+)\\)"));
roleRx.setMinimal(true);
- if(s.tqfind(roleRx) > -1) {
+ if(s.find(roleRx) > -1) {
TQString role = roleRx.cap(2).lower();
if(role == Latin1Literal("story") || role == Latin1Literal("written by")) {
e->setField(TQString::tqfromLatin1("writer"), roleRx.cap(1));
@@ -209,7 +209,7 @@ void AMCImporter::readEntry() {
e->setField(TQString::tqfromLatin1("producer"), s);
}
e->setField(TQString::tqfromLatin1("nationality"), readString());
- e->setField(TQString::tqfromLatin1("genre"), readString().tqreplace(TQString::tqfromLatin1(", "), TQString::tqfromLatin1("; ")));
+ e->setField(TQString::tqfromLatin1("genre"), readString().replace(TQString::tqfromLatin1(", "), TQString::tqfromLatin1("; ")));
e->setField(TQString::tqfromLatin1("cast"), parseCast(readString()).join(TQString::tqfromLatin1("; ")));
@@ -218,7 +218,7 @@ void AMCImporter::readEntry() {
e->setField(TQString::tqfromLatin1("comments"), readString());
s = readString(); // video format
TQRegExp regionRx(TQString::tqfromLatin1("Region \\d"));
- if(s.tqfind(regionRx) > -1) {
+ if(s.find(regionRx) > -1) {
e->setField(TQString::tqfromLatin1("region"), regionRx.cap(0));
}
e->setField(TQString::tqfromLatin1("audio-track"), readString()); // audio format
@@ -242,7 +242,7 @@ TQStringList AMCImporter::parseCast(const TQString& text_) {
TQRegExp castRx(TQString::tqfromLatin1("[,()]"));
TQString person, role;
int oldPos = 0;
- for(int pos = text_.tqfind(castRx); pos > -1; pos = text_.tqfind(castRx, pos+1)) {
+ for(int pos = text_.find(castRx); pos > -1; pos = text_.find(castRx, pos+1)) {
if(text_.at(pos) == ',' && nPar%2 == 0) {
// we're done with this one
person += text_.mid(oldPos, pos-oldPos).stripWhiteSpace();