81 d_func()->engine->registerScriptString(d_func());
98 if (
d->engine && (
d->ref == 1)) {
101 d->identifier = JSC::Identifier();
102 d->engine->unregisterScriptString(
d);
116 d_func()->engine->unregisterScriptString(d_func());
124 d_func()->engine->registerScriptString(d_func());
145 if (!
d || !other.d_func())
146 return d == other.d_func();
147 return d->identifier == other.d_func()->identifier;
177 bool *okok = ok ? ok : &tmp;
178 quint32 result =
d->identifier.toArrayIndex(okok);
193 if (!
d || !
d->engine)
195 return d->identifier.ustring();
bool operator!=(const QScriptString &other) const
Returns true if this QScriptString is not equal to other; otherwise returns false.
#define QT_END_NAMESPACE
This macro expands to.
QScriptString & operator=(const QScriptString &other)
Assigns the other value to this QScriptString.
~QScriptString()
Destroys this QScriptString.
The QString class provides a Unicode character string.
The QScriptString class acts as a handle to "interned" strings in a QScriptEngine.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QScriptString()
Constructs an invalid QScriptString.
bool operator==(const QScriptString &other) const
Returns true if this QScriptString is equal to other; otherwise returns false.
JSC::Identifier identifier
QExplicitlySharedDataPointer< QScriptStringPrivate > d_ptr
static bool isValid(const QScriptString &q)
bool isValid() const
Returns true if this QScriptString is valid; otherwise returns false.
void detach()
If the shared data object's reference count is greater than 1, this function creates a deep copy of t...
static QScriptStringPrivate * get(const QScriptString &q)
quint32 toArrayIndex(bool *ok=0) const
QString toString() const
Returns the string that this QScriptString represents, or a null string if this QScriptString is not ...
uint qHash(const QScriptString &key)