40 return script.d.constData();
185 *
ok = isTrue || isFalse;
186 return isTrue ? true :
false;
191#include "moc_qqmlscriptstring.cpp"
The QQmlContext class defines a context within a QML engine.
static const QQmlScriptStringPrivate * get(const QQmlScriptString &script)
The QQmlScriptString class encapsulates a script and its context.
qreal numberLiteral(bool *ok) const
If the content of the QQmlScriptString is a number literal, returns that number and sets ok to true.
QQmlScriptString()
Constructs an empty instance.
QString stringLiteral() const
If the content of the QQmlScriptString is a string literal, returns that string.
bool isNullLiteral() const
Returns whether the content of the QQmlScriptString is the null literal.
bool operator!=(const QQmlScriptString &) const
Returns true if this and the other QQmlScriptString objects are different.
bool isUndefinedLiteral() const
Returns whether the content of the QQmlScriptString is the undefined literal.
bool operator==(const QQmlScriptString &) const
Returns true if this and the other QQmlScriptString objects are equal.
bool booleanLiteral(bool *ok) const
If the content of the QQmlScriptString is a boolean literal, returns the boolean value and sets ok to...
bool isEmpty() const
Returns whether the QQmlScriptString is empty.
QQmlScriptString & operator=(const QQmlScriptString &)
Assigns other to this.
\macro QT_RESTRICTED_CAST_FROM_ASCII
qsizetype size() const
Returns the number of characters in this string.
QString mid(qsizetype position, qsizetype n=-1) const
Returns a string that contains n characters of this string, starting at the specified position index.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Combined button and popup list for selecting options.
QLatin1StringView QLatin1String