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 | 294efafa8952ef8c96127f59c5f6afe4682322ad (patch) | |
tree | b7b5e29ee448dbf045b8fdf96ea4d7bbd5647f9c /src/parsers | |
parent | f22f5c856d0ee7ec953825828bba094f14c9cade (diff) | |
download | tdeio-apt-294efafa8952ef8c96127f59c5f6afe4682322ad.tar.gz tdeio-apt-294efafa8952ef8c96127f59c5f6afe4682322ad.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kio-apt@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/parsers')
-rw-r--r-- | src/parsers/parsers.cpp | 2 | ||||
-rw-r--r-- | src/parsers/show.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/parsers/parsers.cpp b/src/parsers/parsers.cpp index 2789355..808150b 100644 --- a/src/parsers/parsers.cpp +++ b/src/parsers/parsers.cpp @@ -56,7 +56,7 @@ namespace Parsers // {} TQString mangle_version(TQString version) - { return "version_" + version.tqreplace(TQRegExp("[-:\\.\\+]"), TQString("_")); } + { return "version_" + version.replace(TQRegExp("[-:\\.\\+]"), TQString("_")); } } diff --git a/src/parsers/show.cpp b/src/parsers/show.cpp index 2d7b0c4..84ace04 100644 --- a/src/parsers/show.cpp +++ b/src/parsers/show.cpp @@ -22,8 +22,8 @@ static const TQString // Converts the special chars in orig into its HTML equivalents static TQString text2html(const TQString& orig) { TQString ret(orig); - ret = ret.tqreplace("<(?!a href)", "<"); - //ret = ret.tqreplace( TQRegExp("\n"), "<br />\n"); + ret = ret.replace("<(?!a href)", "<"); + //ret = ret.replace( TQRegExp("\n"), "<br />\n"); return ret; } @@ -185,7 +185,7 @@ void Show::operator() (AptProtocol* slave, const TQString& tag, const TQString& new_paragraph = false; } } - buffer += text2html(TQString(value).tqreplace(TQRegExp("(http://\\S+)"),TQString("<a href=\"\\1\">\\1</a>"))); + buffer += text2html(TQString(value).replace(TQRegExp("(http://\\S+)"),TQString("<a href=\"\\1\">\\1</a>"))); } else if (tag == "package_link") buffer += "<a href=\"" + slave->buildURL("show", value).htmlURL() + "\">" + value + "</a>"; |