summaryrefslogtreecommitdiffstats
path: root/quanta/parts/kafka/wkafkapart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/parts/kafka/wkafkapart.cpp')
-rw-r--r--quanta/parts/kafka/wkafkapart.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/quanta/parts/kafka/wkafkapart.cpp b/quanta/parts/kafka/wkafkapart.cpp
index 91c32106..735e8c51 100644
--- a/quanta/parts/kafka/wkafkapart.cpp
+++ b/quanta/parts/kafka/wkafkapart.cpp
@@ -107,9 +107,9 @@ TQString ab = i18n("Ident all");
{
tmp = t.readLine();
if(tmp.left(2) == "//") continue;//comments
- int begin = tmp.tqfind("(") + 1;
+ int begin = tmp.find("(") + 1;
if(begin == (-1 + 1)) continue;//"(" not found : invalid line
- int length = tmp.tqfind(")") - begin;
+ int length = tmp.find(")") - begin;
decodedChars.insert(tmp.left(1), tmp.mid(begin, length));
encodedChars.insert(tmp.mid(begin, length), tmp.left(1));
}
@@ -521,7 +521,7 @@ bool KafkaDocument::buildKafkaNodeFromNode(Node *node, bool insertNode)
bool canInsertEmptyNode = false;
if(node->tag->type == Tag::Empty)
{
- if(!m_currentDoc->defaultDTD()->name.tqcontains("HTML", false))
+ if(!m_currentDoc->defaultDTD()->name.contains("HTML", false))
canInsertEmptyNode = true;
else
canInsertEmptyNode = kafkaCommon::hasParent(node, "body");
@@ -807,8 +807,8 @@ void KafkaDocument::buildNodeFromKafkaNode(Node *node, DOM::Node domNode)
if(domNode.nodeType() == DOM::Node::TEXT_NODE)
{
TQString text = domNode.nodeValue().string();
- text.tqreplace("<", "&lt;");
- text.tqreplace(">", "&gt;");
+ text.replace("<", "&lt;");
+ text.replace(">", "&gt;");
node->tag->setStr(text);
}
else
@@ -875,7 +875,7 @@ Node * KafkaDocument::buildNodeFromKafkaNode(DOM::Node domNode, Node *nodeParent
TQString KafkaDocument::getDecodedChar(const TQString &encodedChar)
{
- TQMap<TQString, TQString>::Iterator it = encodedChars.tqfind(encodedChar);
+ TQMap<TQString, TQString>::Iterator it = encodedChars.find(encodedChar);
if(it == encodedChars.end())
{
//try this
@@ -950,7 +950,7 @@ TQString KafkaDocument::getEncodedChar(const TQString &decodedChar, const TQStri
else if(decodedChar[0].isSpace())
//FIXME:for an unknown reason, by default it return &iquest; instead of &nbsp;
return "&nbsp;";
- TQMap<TQString, TQString>::Iterator it = decodedChars.tqfind(decodedChar);
+ TQMap<TQString, TQString>::Iterator it = decodedChars.find(decodedChar);
if(it == decodedChars.end())
return decodedChar;
@@ -1074,10 +1074,10 @@ TQString KafkaDocument::generateCodeFromNode(Node *node, int bLine, int bCol, in
openingNode = node->getOpeningNode();
if(openingNode && openingNode->tag->type == Tag::ScriptTag)
{
- if(openingNode->tag->name.tqcontains("XML PI", false) ||
- openingNode->tag->name.tqcontains("PHP", false))
+ if(openingNode->tag->name.contains("XML PI", false) ||
+ openingNode->tag->name.contains("PHP", false))
text = "?>";
- else if(openingNode->tag->name.tqcontains("DTD", false))
+ else if(openingNode->tag->name.contains("DTD", false))
text = ">";
else
text = ">";
@@ -1102,26 +1102,26 @@ TQString KafkaDocument::generateCodeFromNode(Node *node, int bLine, int bCol, in
/** Can't use KGlobal::charsets()->toEntity() :
* It translate all chars into entities! */
else if(!hasPreParent)
- text = node->tag->tagStr().tqreplace(TQRegExp("\\s+"), " ");
+ text = node->tag->tagStr().replace(TQRegExp("\\s+"), " ");
else
text = node->tag->tagStr();
}
else if(node->tag->type == Tag::ScriptTag)
{
//WARNING : HTML SPECIFIC
- if(node->tag->name.tqcontains("style", false))
+ if(node->tag->name.contains("style", false))
{
text = "<" + QuantaCommon::tagCase("style") + ">";
}
- else if(node->tag->name.tqcontains("DTD", false))
+ else if(node->tag->name.contains("DTD", false))
{
text = "<!";
}
- else if(node->tag->name.tqcontains("XML PI", false))
+ else if(node->tag->name.contains("XML PI", false))
{
text = "<?xml";
}
- else if(node->tag->name.tqcontains("PHP", false))
+ else if(node->tag->name.contains("PHP", false))
{
text = "<?php";
}
@@ -1832,9 +1832,9 @@ void KafkaDocument::coutLinkTree(Node *, int)
dots.fill('*', indent);
output = dots;
if (node->tag->type != Tag::Text)
- output += node->tag->name.tqreplace('\n'," ");
+ output += node->tag->name.replace('\n'," ");
else
- output+= node->tag->tagStr().tqreplace('\n'," ");
+ output+= node->tag->tagStr().replace('\n'," ");
output += " (";
output += node->tag->type;
output += ") ";