diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 0254ebaa5e056092461fd585b6851d15faa43035 (patch) | |
tree | 2bf41a1c189b92dc1b9ab89e3ce392f8132214c4 /src/tellico_utils.cpp | |
parent | fa071926f015f39711632b3fb9fe16004d93d0ec (diff) | |
download | tellico-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/tellico_utils.cpp')
-rw-r--r-- | src/tellico_utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tellico_utils.cpp b/src/tellico_utils.cpp index d660839..f04036a 100644 --- a/src/tellico_utils.cpp +++ b/src/tellico_utils.cpp @@ -41,7 +41,7 @@ TQString Tellico::decodeHTML(TQString text) { while(pos > -1) { TQChar c = KCharsets::fromEntity(rx.cap(1)); if(!c.isNull()) { - text.tqreplace(pos, rx.matchedLength(), c); + text.replace(pos, rx.matchedLength(), c); } pos = rx.search(text, pos+1); } @@ -83,7 +83,7 @@ TQString Tellico::i18nReplace(TQString text) { static TQRegExp rx(TQString::tqfromLatin1("(?:\\n+ *)*<i18n>([^<]*)</i18n>(?: *\\n+)*")); int pos = rx.search(text); while(pos > -1) { - text.tqreplace(pos, rx.matchedLength(), i18n(rx.cap(1).utf8())); + text.replace(pos, rx.matchedLength(), i18n(rx.cap(1).utf8())); pos = rx.search(text, pos+rx.matchedLength()); } return text; |