Qt 4.8
Classes | Functions
qscriptdebuggercommandexecutor.cpp File Reference
#include "qscriptdebuggercommandexecutor_p.h"
#include "qscriptdebuggerbackend_p.h"
#include "qscriptdebuggercommand_p.h"
#include "qscriptdebuggerresponse_p.h"
#include "qscriptdebuggervalue_p.h"
#include "qscriptdebuggervalueproperty_p.h"
#include "qscriptbreakpointdata_p.h"
#include "qscriptobjectsnapshot_p.h"
#include "qscriptdebuggerobjectsnapshotdelta_p.h"
#include <QtCore/qstringlist.h>
#include <QtScript/qscriptengine.h>
#include <QtScript/qscriptcontextinfo.h>
#include <QtScript/qscriptvalueiterator.h>
#include <QtCore/qdebug.h>

Go to the source code of this file.

Classes

class  QScriptDebuggerCommandExecutorPrivate
 

Functions

static bool isPrefixOf (const QString &prefix, const QString &what)
 

Function Documentation

◆ isPrefixOf()

static bool isPrefixOf ( const QString prefix,
const QString what 
)
static

Definition at line 106 of file qscriptdebuggercommandexecutor.cpp.

Referenced by QScriptDebuggerCommandExecutor::execute(), QScriptCompleteScriptsJob::handleResponse(), and QScriptCompletionTask::start().

107 {
108  return ((what.length() > prefix.length())
109  && what.startsWith(prefix));
110 }
int length() const
Returns the number of characters in this string.
Definition: qstring.h:696
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
Definition: qstring.cpp:3734