summaryrefslogtreecommitdiffstats
path: root/quanta/components/debugger/gubed/quantadebuggergubed.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/components/debugger/gubed/quantadebuggergubed.cpp')
-rw-r--r--quanta/components/debugger/gubed/quantadebuggergubed.cpp190
1 files changed, 95 insertions, 95 deletions
diff --git a/quanta/components/debugger/gubed/quantadebuggergubed.cpp b/quanta/components/debugger/gubed/quantadebuggergubed.cpp
index 8c2ab1b5..58f949a1 100644
--- a/quanta/components/debugger/gubed/quantadebuggergubed.cpp
+++ b/quanta/components/debugger/gubed/quantadebuggergubed.cpp
@@ -47,17 +47,17 @@ K_EXPORT_COMPONENT_FACTORY( quantadebuggergubed,
const char QuantaDebuggerGubed::protocolversion[] = "0.0.12";
-QuantaDebuggerGubed::QuantaDebuggerGubed (TQObject *parent, const char* name, const TQStringList&)
- : DebuggerClient (parent, name)
+QuantaDebuggerGubed::QuantaDebuggerGubed (TQObject *tqparent, const char* name, const TQStringList&)
+ : DebuggerClient (tqparent, name)
{
// Create a socket object and set up its signals
m_socket = NULL;
m_server = NULL;
- m_errormask = 1794;
+ m_errortqmask = 1794;
m_defaultExecutionState = Pause;
setExecutionState(m_defaultExecutionState);
- emit updateStatus(DebuggerUI::NoSession);
+ emit updatetqStatus(DebuggerUI::NoSession);
m_datalen = -1;
}
@@ -80,7 +80,7 @@ QuantaDebuggerGubed::~QuantaDebuggerGubed ()
delete m_server;
m_server = NULL;
}
- emit updateStatus(DebuggerUI::NoSession);
+ emit updatetqStatus(DebuggerUI::NoSession);
}
// Try to make a connection to the gubed server
@@ -109,7 +109,7 @@ void QuantaDebuggerGubed::startSession()
debuggerInterface()->enableAction("debug_request", false);
kdDebug(24002) << k_funcinfo << ", proxy:" << m_serverHost << ", " << m_serverPort.toUInt() << endl;
- emit updateStatus(DebuggerUI::AwaitingConnection);
+ emit updatetqStatus(DebuggerUI::AwaitingConnection);
}
}
else
@@ -123,14 +123,14 @@ void QuantaDebuggerGubed::startSession()
if(m_server->listen())
{
- emit updateStatus(DebuggerUI::AwaitingConnection);
+ emit updatetqStatus(DebuggerUI::AwaitingConnection);
debuggerInterface()->enableAction("debug_connect", false);
debuggerInterface()->enableAction("debug_disconnect", true);
debuggerInterface()->enableAction("debug_request", true);
}
else
{
- emit updateStatus(DebuggerUI::NoSession);
+ emit updatetqStatus(DebuggerUI::NoSession);
delete m_server;
m_server = NULL;
debuggerInterface()->enableAction("debug_connect", true);
@@ -174,7 +174,7 @@ void QuantaDebuggerGubed::endSession()
debuggerInterface()->enableAction("debug_leap", false);
debuggerInterface()->enableAction("debug_pause", false);
- emit updateStatus(DebuggerUI::NoSession);
+ emit updatetqStatus(DebuggerUI::NoSession);
}
// Change executionstate of the script
@@ -185,7 +185,7 @@ void QuantaDebuggerGubed::setExecutionState(State newstate)
sendCommand("pause", (char*)0L);
sendCommand("sendactiveline", (char*)0L);
if(isActive())
- emit updateStatus(DebuggerUI::Paused);
+ emit updatetqStatus(DebuggerUI::Paused);
}
else if(newstate == Run)
{
@@ -194,7 +194,7 @@ void QuantaDebuggerGubed::setExecutionState(State newstate)
sendCommand("run", (char*)0L);
if(isActive())
- emit updateStatus(DebuggerUI::Running);
+ emit updatetqStatus(DebuggerUI::Running);
}
else if(newstate == Trace)
{
@@ -203,7 +203,7 @@ void QuantaDebuggerGubed::setExecutionState(State newstate)
sendCommand("trace", (char*)0L);
if(isActive())
- emit updateStatus(DebuggerUI::Tracing);
+ emit updatetqStatus(DebuggerUI::Tracing);
}
m_executionState = newstate;
@@ -258,15 +258,15 @@ void QuantaDebuggerGubed::slotError(int)
if(m_socket->error())
{
- kdDebug(24002) << k_funcinfo << ", " << m_socket->errorString() << endl;
- debuggerInterface()->showStatus(m_socket->errorString(), false);
+ kdDebug(24002) << k_funcinfo << ", " << m_socket->KSocketBase::errorString() << endl;
+ debuggerInterface()->showtqStatus(m_socket->KSocketBase::errorString(), false);
}
}
if(m_server && m_server->error())
{
kdDebug(24002) << k_funcinfo << ", " << m_server->errorString() << endl;
- debuggerInterface()->showStatus(m_server->errorString(), false);
+ debuggerInterface()->showtqStatus(m_server->errorString(), false);
}
}
@@ -294,7 +294,7 @@ void QuantaDebuggerGubed::slotReadyAccept()
connect(m_socket, TQT_SIGNAL(readyRead()), this, TQT_SLOT(slotReadyRead()));
connected();
- emit updateStatus(DebuggerUI::Connected);
+ emit updatetqStatus(DebuggerUI::Connected);
}
else
{
@@ -307,7 +307,7 @@ void QuantaDebuggerGubed::slotReadyAccept()
// Connection established
void QuantaDebuggerGubed::slotConnected(const KNetwork::KResolverEntry &)
{
- emit updateStatus(DebuggerUI::Connected);
+ emit updatetqStatus(DebuggerUI::Connected);
connected();
}
@@ -353,7 +353,7 @@ void QuantaDebuggerGubed::slotConnectionClosed()
debuggerInterface()->setActiveLine("", 0);
- emit updateStatus(DebuggerUI::AwaitingConnection);
+ emit updatetqStatus(DebuggerUI::AwaitingConnection);
m_active = false;
}
@@ -383,13 +383,13 @@ void QuantaDebuggerGubed::slotReadyRead()
// If datalen == -1, we didnt read the command yet, otherwise were reading data.
if(m_datalen == -1)
{
- bytes = m_buffer.find(";");
+ bytes = m_buffer.tqfind(";");
if(bytes < 0)
break;
data = m_buffer.left(bytes);
m_buffer.remove(0, bytes + 1);
- bytes = data.find(":");
+ bytes = data.tqfind(":");
m_command = data.left(bytes);
data.remove(0, bytes + 1);
m_datalen = data.toLong();
@@ -437,7 +437,7 @@ void QuantaDebuggerGubed::processCommand(const TQString& datas)
else if(m_executionState == Trace)
sendCommand("trace", (char*)0L);
- sendCommand("seterrormask", "errormask", TQString::number(m_errormask).ascii(), (char*)0L);
+ sendCommand("seterrortqmask", "errortqmask", TQString::number(m_errortqmask).ascii(), (char*)0L);
}
// Just some status info, display on status line
else if(m_command == "status")
@@ -445,9 +445,9 @@ void QuantaDebuggerGubed::processCommand(const TQString& datas)
long argcnt = args["args"].toLong();
TQString msg = i18n(args["message"].ascii()); // How will we get these messages throught to the translators?
for(int cnt = 1; cnt <= argcnt; cnt++)
- msg.replace("%" + TQString("%1").arg(cnt) + "%", args[TQString("arg%1").arg(cnt)]);
+ msg.tqreplace("%" + TQString("%1").tqarg(cnt) + "%", args[TQString("arg%1").tqarg(cnt)]);
- debuggerInterface()->showStatus(msg, false);
+ debuggerInterface()->showtqStatus(msg, false);
}
// New current line
else if(m_command == "setactiveline")
@@ -462,7 +462,7 @@ void QuantaDebuggerGubed::processCommand(const TQString& datas)
// Parsing failed
else if(m_command == "parsefailed")
{
- debuggerInterface()->showStatus(i18n("Syntax or parse error in %1)").arg(args["filenme"]), true);
+ debuggerInterface()->showtqStatus(i18n("Syntax or parse error in %1)").tqarg(args["filenme"]), true);
return;
}
// A debugging session is running
@@ -479,11 +479,11 @@ void QuantaDebuggerGubed::processCommand(const TQString& datas)
else if(m_command == "error")
{
// Put the line number first so double clicking will jump to the corrrect line
- debuggerInterface()->showStatus(i18n("Error occurred: Line %1, Code %2 (%3) in %4").arg(args["line"]).arg(args["errnum"]).arg(args["errmsg"]).arg(args["filename"]), true);
+ debuggerInterface()->showtqStatus(i18n("Error occurred: Line %1, Code %2 (%3) in %4").tqarg(args["line"]).tqarg(args["errnum"]).tqarg(args["errmsg"]).tqarg(args["filename"]), true);
- // Filter to get error code only and match it with out mask
+ // Filter to get error code only and match it with out tqmask
long error = args["errnum"].toLong();
- if(m_errormask & error)
+ if(m_errortqmask & error)
setExecutionState(Pause);
else if(m_executionState == Trace)
setExecutionState(Trace);
@@ -492,21 +492,21 @@ void QuantaDebuggerGubed::processCommand(const TQString& datas)
else
setExecutionState(Pause);
- emit updateStatus(DebuggerUI::HaltedOnError);
+ emit updatetqStatus(DebuggerUI::HaltedOnError);
}
// We came across a hard coded breakpoint
else if(m_command == "forcebreak")
{
setExecutionState(Pause);
- emit updateStatus(DebuggerUI::HaltedOnBreakpoint);
- debuggerInterface()->showStatus(i18n("Breakpoint reached"), true);
+ emit updatetqStatus(DebuggerUI::HaltedOnBreakpoint);
+ debuggerInterface()->showtqStatus(i18n("Breakpoint reached"), true);
}
// A conditional breakpoint was fulfilled
else if(m_command == "conditionalbreak")
{
setExecutionState(Pause);
- emit updateStatus(DebuggerUI::HaltedOnBreakpoint);
- debuggerInterface()->showStatus(i18n("Conditional breakpoint fulfilled"), true);
+ emit updatetqStatus(DebuggerUI::HaltedOnBreakpoint);
+ debuggerInterface()->showtqStatus(i18n("Conditional breakpoint fulfilled"), true);
}
// There is a breakpoint set in this file/line
else if(m_command == "removebreakpoint")
@@ -516,7 +516,7 @@ void QuantaDebuggerGubed::processCommand(const TQString& datas)
// We're about to debug a file..
else if(m_command == "initialize")
{
- debuggerInterface()->showStatus(i18n("Established connection to %1").arg(args["filename"]), false);
+ debuggerInterface()->showtqStatus(i18n("Established connection to %1").tqarg(args["filename"]), false);
sendCommand("sendprotocolversion", (char*)0L);
debuggerInterface()->setActiveLine(mapServerPathToLocal(args["filename"]), 0);
@@ -549,7 +549,7 @@ void QuantaDebuggerGubed::processCommand(const TQString& datas)
// Reached en of an include
else if(m_command == "end")
{
- //debuggerInterface()->showStatus(i18n("At end of include %1").arg(data), true);
+ //debuggerInterface()->showtqStatus(i18n("At end of include %1").tqarg(data), true);
return;
}
// Check protocol version
@@ -557,7 +557,7 @@ void QuantaDebuggerGubed::processCommand(const TQString& datas)
{
if(args["version"] != protocolversion)
{
- debuggerInterface()->showStatus(i18n("The script being debugged does not communicate with the correct protocol version"), true);
+ debuggerInterface()->showtqStatus(i18n("The script being debugged does not communicate with the correct protocol version"), true);
sendCommand("die", (char*)0L);
}
return;
@@ -603,7 +603,7 @@ bool QuantaDebuggerGubed::sendCommand(const TQString& command, StringMap args)
TQString buffer = phpSerialize(args);
- buffer = TQString(command + ":%1;" + buffer).arg(buffer.length());
+ buffer = TQString(command + ":%1;" + buffer).tqarg(buffer.length());
m_socket->writeBlock(buffer.ascii(), buffer.length());
return true;
}
@@ -768,15 +768,15 @@ void QuantaDebuggerGubed::fileOpened(const TQString&)
// Watch a variable
void QuantaDebuggerGubed::addWatch(const TQString &variable)
{
- if(m_watchlist.find(variable) == m_watchlist.end())
+ if(m_watchlist.tqfind(variable) == m_watchlist.end())
m_watchlist.append(variable);
sendCommand("getwatch", "variable", variable.ascii(), (char*)0L);
}
// Remove watch
void QuantaDebuggerGubed::removeWatch(DebuggerVariable *variable)
{
- if(m_watchlist.find(variable->name()) != m_watchlist.end())
- m_watchlist.remove(m_watchlist.find(variable->name()));
+ if(m_watchlist.tqfind(variable->name()) != m_watchlist.end())
+ m_watchlist.remove(m_watchlist.tqfind(variable->name()));
//sendCommand("unwatchvariable", var->name());
}
@@ -843,9 +843,9 @@ void QuantaDebuggerGubed::readConfig(TQDomNode node)
valuenode = node.namedItem("displaydelay");
m_displaydelay = valuenode.firstChild().nodeValue().toLong();
- valuenode = node.namedItem("errormask");
- m_errormask = valuenode.firstChild().nodeValue().toLong();
- kdDebug(24002) << k_funcinfo << ", m_errormask = " << m_errormask << endl;
+ valuenode = node.namedItem("errortqmask");
+ m_errortqmask = valuenode.firstChild().nodeValue().toLong();
+ kdDebug(24002) << k_funcinfo << ", m_errortqmask = " << m_errortqmask << endl;
}
@@ -866,11 +866,11 @@ void QuantaDebuggerGubed::showConfig(TQDomNode node)
set.lineStartSession->setText(m_startsession);
set.comboDefaultExecutionState->setCurrentItem((int)m_defaultExecutionState);
- set.checkBreakOnNotice->setChecked(QuantaDebuggerGubed::Notice & m_errormask);
- set.checkBreakOnWarning->setChecked(QuantaDebuggerGubed::Warning & m_errormask);
- set.checkBreakOnUserNotice->setChecked(QuantaDebuggerGubed::User_Notice & m_errormask);
- set.checkBreakOnUserWarning->setChecked(QuantaDebuggerGubed::User_Warning & m_errormask);
- set.checkBreakOnUserError->setChecked(QuantaDebuggerGubed::User_Error & m_errormask);
+ set.checkBreakOnNotice->setChecked(QuantaDebuggerGubed::Notice & m_errortqmask);
+ set.checkBreakOnWarning->setChecked(QuantaDebuggerGubed::Warning & m_errortqmask);
+ set.checkBreakOnUserNotice->setChecked(QuantaDebuggerGubed::User_Notice & m_errortqmask);
+ set.checkBreakOnUserWarning->setChecked(QuantaDebuggerGubed::User_Warning & m_errortqmask);
+ set.checkBreakOnUserError->setChecked(QuantaDebuggerGubed::User_Error & m_errortqmask);
if(set.exec() == TQDialog::Accepted )
{
@@ -878,7 +878,7 @@ void QuantaDebuggerGubed::showConfig(TQDomNode node)
el = node.namedItem("serverhost").toElement();
if (!el.isNull())
- el.parentNode().removeChild(el);
+ el.tqparentNode().removeChild(el);
el = node.ownerDocument().createElement("serverhost");
node.appendChild( el );
m_serverHost = set.lineServerHost->text();
@@ -886,7 +886,7 @@ void QuantaDebuggerGubed::showConfig(TQDomNode node)
el = node.namedItem("serverport").toElement();
if (!el.isNull())
- el.parentNode().removeChild(el);
+ el.tqparentNode().removeChild(el);
el = node.ownerDocument().createElement("serverport");
node.appendChild( el );
m_serverPort = set.lineServerPort->text();
@@ -894,7 +894,7 @@ void QuantaDebuggerGubed::showConfig(TQDomNode node)
el = node.namedItem("localbasedir").toElement();
if (!el.isNull())
- el.parentNode().removeChild(el);
+ el.tqparentNode().removeChild(el);
el = node.ownerDocument().createElement("localbasedir");
node.appendChild( el );
m_localBasedir = set.lineLocalBasedir->text();
@@ -904,7 +904,7 @@ void QuantaDebuggerGubed::showConfig(TQDomNode node)
el = node.namedItem("serverbasedir").toElement();
if (!el.isNull())
- el.parentNode().removeChild(el);
+ el.tqparentNode().removeChild(el);
el = node.ownerDocument().createElement("serverbasedir");
node.appendChild( el );
m_serverBasedir = set.lineServerBasedir->text();
@@ -914,7 +914,7 @@ void QuantaDebuggerGubed::showConfig(TQDomNode node)
el = node.namedItem("useproxy").toElement();
if (!el.isNull())
- el.parentNode().removeChild(el);
+ el.tqparentNode().removeChild(el);
el = node.ownerDocument().createElement("useproxy");
node.appendChild( el );
m_useproxy = set.checkUseProxy->isChecked();
@@ -922,7 +922,7 @@ void QuantaDebuggerGubed::showConfig(TQDomNode node)
el = node.namedItem("listenport").toElement();
if (!el.isNull())
- el.parentNode().removeChild(el);
+ el.tqparentNode().removeChild(el);
el = node.ownerDocument().createElement("listenport");
node.appendChild( el );
m_listenPort = set.lineServerListenPort->text();
@@ -930,7 +930,7 @@ void QuantaDebuggerGubed::showConfig(TQDomNode node)
el = node.namedItem("startsession").toElement();
if (!el.isNull())
- el.parentNode().removeChild(el);
+ el.tqparentNode().removeChild(el);
el = node.ownerDocument().createElement("startsession");
node.appendChild( el );
m_startsession = set.lineStartSession->text();
@@ -938,7 +938,7 @@ void QuantaDebuggerGubed::showConfig(TQDomNode node)
el = node.namedItem("defaultexecutionstate").toElement();
if (!el.isNull())
- el.parentNode().removeChild(el);
+ el.tqparentNode().removeChild(el);
el = node.ownerDocument().createElement("defaultexecutionstate");
node.appendChild( el );
m_defaultExecutionState = (State)set.comboDefaultExecutionState->currentItem();
@@ -947,24 +947,24 @@ void QuantaDebuggerGubed::showConfig(TQDomNode node)
el = node.namedItem("displaydelay").toElement();
if (!el.isNull())
- el.parentNode().removeChild(el);
+ el.tqparentNode().removeChild(el);
el = node.ownerDocument().createElement("displaydelay");
node.appendChild( el );
m_displaydelay = set.sliderDisplayDelay->value();
el.appendChild( node.ownerDocument().createTextNode(TQString::number(m_displaydelay)));
- el = node.namedItem("errormask").toElement();
+ el = node.namedItem("errortqmask").toElement();
if (!el.isNull())
- el.parentNode().removeChild(el);
- el = node.ownerDocument().createElement("errormask");
+ el.tqparentNode().removeChild(el);
+ el = node.ownerDocument().createElement("errortqmask");
node.appendChild( el );
- m_errormask = (set.checkBreakOnNotice->isChecked() ? QuantaDebuggerGubed::Notice : 0)
+ m_errortqmask = (set.checkBreakOnNotice->isChecked() ? QuantaDebuggerGubed::Notice : 0)
+ (set.checkBreakOnWarning->isChecked() ? QuantaDebuggerGubed::Warning : 0)
+ (set.checkBreakOnUserNotice->isChecked() ? QuantaDebuggerGubed::User_Notice : 0)
+ (set.checkBreakOnUserWarning->isChecked() ? QuantaDebuggerGubed::User_Warning : 0)
+ (set.checkBreakOnUserError->isChecked() ? QuantaDebuggerGubed::User_Error : 0);
- kdDebug(24002) << k_funcinfo << ", m_errormask = " << m_errormask << endl;
- el.appendChild( node.ownerDocument().createTextNode(TQString::number(m_errormask)));
+ kdDebug(24002) << k_funcinfo << ", m_errortqmask = " << m_errortqmask << endl;
+ el.appendChild( node.ownerDocument().createTextNode(TQString::number(m_errortqmask)));
}
}
@@ -995,7 +995,7 @@ TQString QuantaDebuggerGubed::phpSerialize(StringMap args)
{
StringMap::Iterator it;
// a:2:{s:4:"name";s:7:"Jessica";s:3:"age";s:2:"26";s:4:"test";i:1;}
- TQString ret = TQString("a:%1:{").arg(args.size());
+ TQString ret = TQString("a:%1:{").tqarg(args.size());
for( it = args.begin(); it != args.end(); ++it )
{
bool isNumber;
@@ -1003,15 +1003,15 @@ TQString QuantaDebuggerGubed::phpSerialize(StringMap args)
it.data().toInt(&isNumber);
if(isNumber && !it.data().isEmpty())
ret += TQString("s:%1:\"%2\";i:%3;")
- .arg(it.key().length())
- .arg(it.key())
- .arg(it.data());
+ .tqarg(it.key().length())
+ .tqarg(it.key())
+ .tqarg(it.data());
else
ret += TQString("s:%1:\"%2\";s:%3:\"%4\";")
- .arg(it.key().length())
- .arg(it.key())
- .arg(it.data().length())
- .arg(it.data());
+ .tqarg(it.key().length())
+ .tqarg(it.key())
+ .tqarg(it.data().length())
+ .tqarg(it.data());
}
@@ -1038,13 +1038,13 @@ StringMap QuantaDebuggerGubed::parseArgs(const TQString &args)
return ca;
}
- cnt = args.mid(2, args.find("{") - 3).toLong();
- TQString data = args.mid(args.find("{") + 1);
+ cnt = args.mid(2, args.tqfind("{") - 3).toLong();
+ TQString data = args.mid(args.tqfind("{") + 1);
TQString tmp, func;
while(cnt > 0)
{
- tmp = data.left(data.find("\""));
+ tmp = data.left(data.tqfind("\""));
length = tmp.mid(2, tmp.length() - 3).toLong();
func = data.mid(tmp.length() + 1, length);
@@ -1053,8 +1053,8 @@ StringMap QuantaDebuggerGubed::parseArgs(const TQString &args)
if(data.left(1) == "i")
{
// Integer data
- tmp = data.mid(data.find(":") + 1);
- tmp = tmp.left(tmp.find(";"));
+ tmp = data.mid(data.tqfind(":") + 1);
+ tmp = tmp.left(tmp.tqfind(";"));
ca[func] = tmp;
data = data.mid(tmp.length() + 3);
// kdDebug(24002) << k_funcinfo << "**i " << func << ": " << ca[func] << endl;
@@ -1062,7 +1062,7 @@ StringMap QuantaDebuggerGubed::parseArgs(const TQString &args)
else
{
// String data
- tmp = data.left(data.find("\""));
+ tmp = data.left(data.tqfind("\""));
length = tmp.mid(2, tmp.length() - 3).toLong();
ca[func] = data.mid(tmp.length() + 1, length);
@@ -1098,8 +1098,8 @@ DebuggerVariable* QuantaDebuggerGubed::parsePHPVariables(TQString &str)
if(type == "s")
{
// Get length of key
- tempstring = str.left(str.find(':'));
- str.remove(0, str.find(':') + 1);
+ tempstring = str.left(str.tqfind(':'));
+ str.remove(0, str.tqfind(':') + 1);
length = tempstring.toUInt();
key = str.left(length + 1);
@@ -1108,8 +1108,8 @@ DebuggerVariable* QuantaDebuggerGubed::parsePHPVariables(TQString &str)
}
else if(type == "i")
{
- key = str.left(str.find(';'));
- str.remove(0, str.find(';') + 1);
+ key = str.left(str.tqfind(';'));
+ str.remove(0, str.tqfind(';') + 1);
}
@@ -1122,8 +1122,8 @@ DebuggerVariable* QuantaDebuggerGubed::parsePHPVariables(TQString &str)
/* Example:
s:4:"$row";i:6;
*/
- data = str.left(str.find(';'));
- str.remove(0, str.find(';') + 1);
+ data = str.left(str.tqfind(';'));
+ str.remove(0, str.tqfind(';') + 1);
debuggervar = debuggerInterface()->newDebuggerVariable(key, data, DebuggerVariableTypes::Integer);
}
@@ -1132,9 +1132,9 @@ DebuggerVariable* QuantaDebuggerGubed::parsePHPVariables(TQString &str)
/* Example:
s:8:"$boolvar";b:1;
*/
- data = str.left(str.find(';'));
+ data = str.left(str.tqfind(';'));
data = (data == "0" ? i18n("False"): i18n("True"));
- str.remove(0, str.find(';') + 1);
+ str.remove(0, str.tqfind(';') + 1);
debuggervar = debuggerInterface()->newDebuggerVariable(key, data, DebuggerVariableTypes::Boolean);
}
else if(type == "N")
@@ -1151,8 +1151,8 @@ DebuggerVariable* QuantaDebuggerGubed::parsePHPVariables(TQString &str)
*/
// Get length of string
- tempstring = str.left(str.find(':'));
- str.remove(0, str.find(':') + 1);
+ tempstring = str.left(str.tqfind(':'));
+ str.remove(0, str.tqfind(':') + 1);
length = tempstring.toUInt();
data = str.left(length + 1);
@@ -1168,8 +1168,8 @@ DebuggerVariable* QuantaDebuggerGubed::parsePHPVariables(TQString &str)
*/
// Get length of array
- tempstring = str.left(str.find(':'));
- str.remove(0, str.find(':') + 2);
+ tempstring = str.left(str.tqfind(':'));
+ str.remove(0, str.tqfind(':') + 2);
length = tempstring.toUInt();
TQPtrList<DebuggerVariable> vars ;
@@ -1193,13 +1193,13 @@ DebuggerVariable* QuantaDebuggerGubed::parsePHPVariables(TQString &str)
*/
// Get length of array
- tempstring = str.left(str.find(':'));
- str.remove(0, str.find(':') + 2);
- tempstring = str.mid(str.find(':') + 1);
- tempstring = tempstring.left(tempstring.find(':'));
+ tempstring = str.left(str.tqfind(':'));
+ str.remove(0, str.tqfind(':') + 2);
+ tempstring = str.mid(str.tqfind(':') + 1);
+ tempstring = tempstring.left(tempstring.tqfind(':'));
length = tempstring.toUInt();
- str.remove(0, str.find('{') + 1);
+ str.remove(0, str.tqfind('{') + 1);
TQPtrList<DebuggerVariable> vars ;
while(length > 0)
@@ -1220,8 +1220,8 @@ DebuggerVariable* QuantaDebuggerGubed::parsePHPVariables(TQString &str)
/* Example:
s:9:"$floatvar";d:12.5600000000000004973799150320701301097869873046875;"
*/
- data = str.left(str.find(';'));
- str.remove(0, str.find(';') + 1);
+ data = str.left(str.tqfind(';'));
+ str.remove(0, str.tqfind(';') + 1);
debuggervar = debuggerInterface()->newDebuggerVariable(key, data, DebuggerVariableTypes::Float);
}