KJS-API
Go to the documentation of this file.
25 #include "kjs/ustring.h"
26 #include "kjs/identifier.h"
28 #include <QtCore/QString>
30 #define JSVALUE_HANDLE(v) reinterpret_cast<KJSObjectHandle*>(v)
31 #define JSVALUE(h) reinterpret_cast<KJS::JSValue*>((h)->hnd)
33 #define EXECSTATE_HANDLE(c) reinterpret_cast<KJSContextHandle*>(c)
34 #define EXECSTATE(ctx) reinterpret_cast<ExecState*>((ctx)->hnd)
36 #define INTERPRETER_HANDLE(i) reinterpret_cast<KJSInterpreterHandle*>(i)
37 #define INTERPRETER(h) reinterpret_cast<KJS::Interpreter*>((h)->hnd)
39 #define PROTOTYPE_HANDLE(p) reinterpret_cast<KJSPrototypeHandle*>(p)
40 #define PROTOTYPE(h) reinterpret_cast<CustomPrototype*>((h)->hnd)
42 #define LIST_HANDLE(l) reinterpret_cast<const KJSArgumentsHandle*>(l)
43 #define LIST(h) reinterpret_cast<const KJS::List*>((h)->hnd)
49 const KJS::UChar* u =
reinterpret_cast<const KJS::UChar*
>(s.
unicode());
50 return KJS::UString(u, l);
56 const KJS::UChar* u =
reinterpret_cast<const KJS::UChar*
>(s.
unicode());
57 return KJS::Identifier(u, l);
63 const QChar* u =
reinterpret_cast<const QChar*
>(s.data());
static QString toQString(const KJS::UString &s)
static KJS::UString toUString(const QString &s)
static KJS::Identifier toIdentifier(const QString &s)
const QChar * unicode() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:43 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.