summaryrefslogtreecommitdiffstats
path: root/src/parsers
diff options
context:
space:
mode:
Diffstat (limited to 'src/parsers')
-rw-r--r--src/parsers/parsers.cpp2
-rw-r--r--src/parsers/show.cpp6
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)", "&lt;");
- //ret = ret.tqreplace( TQRegExp("\n"), "<br />\n");
+ ret = ret.replace("<(?!a href)", "&lt;");
+ //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>";