summaryrefslogtreecommitdiffstats
path: root/klinkstatus/src/parser/htmlparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'klinkstatus/src/parser/htmlparser.cpp')
-rw-r--r--klinkstatus/src/parser/htmlparser.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/klinkstatus/src/parser/htmlparser.cpp b/klinkstatus/src/parser/htmlparser.cpp
index 557d0d25..ebe8e362 100644
--- a/klinkstatus/src/parser/htmlparser.cpp
+++ b/klinkstatus/src/parser/htmlparser.cpp
@@ -131,11 +131,11 @@ int HtmlParser::endOfTag(TQString const& s, int index, TQChar end_of_tag)
if( (uint)index >= s.length() )
return -1;
- int _end_of_tag = s.find(end_of_tag, index);
+ int _end_of_tag = s.tqfind(end_of_tag, index);
if(_end_of_tag == -1)
return _end_of_tag;
- int open_aspas = s.find('"', index);
+ int open_aspas = s.tqfind('"', index);
if(open_aspas == -1)
return _end_of_tag + 1;
@@ -147,7 +147,7 @@ int HtmlParser::endOfTag(TQString const& s, int index, TQChar end_of_tag)
else
{
- int close_aspas = s.find('"', open_aspas + 1);
+ int close_aspas = s.tqfind('"', open_aspas + 1);
if(close_aspas != -1)
return endOfTag(s, close_aspas + 1, end_of_tag);
else
@@ -202,7 +202,7 @@ void HtmlParser::parseNodesOfTypeMETA()
NodeMETA* node = new NodeMETA(aux[i]);
nodes_.push_back(node);
- if(!is_content_type_set_ && node->atributoHTTP_EQUIV().lower() == TQString("Content-Type").lower()) {
+ if(!is_content_type_set_ && node->atributoHTTP_ETQUIV().lower() == TQString("Content-Type").lower()) {
is_content_type_set_ = true;
node_META_content_type_.setNode(aux[i]);
}
@@ -218,7 +218,7 @@ TQString HtmlParser::findCharsetInMetaElement(TQString const& html)
{
NodeMETA node(metaTags[i]);
- if(node.atributoHTTP_EQUIV().lower() == TQString("Content-Type").lower()) {
+ if(node.atributoHTTP_ETQUIV().lower() == TQString("Content-Type").lower()) {
return node.charset();
}
}
@@ -259,7 +259,7 @@ void HtmlParser::parseNodesOfTypeBASE()
if(inicio == -1 || !doc[inicio].isSpace())
return;
- fim = doc.find(">", inicio);
+ fim = doc.tqfind(">", inicio);
if(fim == -1)
return;
@@ -375,7 +375,7 @@ void HtmlParser::mostra() const
{
if(nodes_[i]->element() == Node::META)
{
-#if defined Q_WS_WIN
+#if defined TQ_WS_WIN
NodeMETA* nm = (NodeMETA*)nodes_[i];
#else
@@ -383,7 +383,7 @@ void HtmlParser::mostra() const
#endif
kdDebug(23100) << nm->url() << endl
- << nm->atributoHTTP_EQUIV() << endl
+ << nm->atributoHTTP_ETQUIV() << endl
<< nm->atributoNAME() << endl
<< nm->atributoCONTENT() << endl;
}