From 0254ebaa5e056092461fd585b6851d15faa43035 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: 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 --- src/translators/alexandriaimporter.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/translators/alexandriaimporter.cpp') 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() { -- cgit v1.2.1