kjsembed
Go to the documentation of this file.
26 #include <kdemacros.h>
29 # if (defined(KJSEMBED_DLL) && defined(KJSEMBED_MAKE_DLL)) || defined(MAKE_KJSEMBED_LIB)
30 # define KJSEMBED_EXPORT KDE_EXPORT
32 # define KJSEMBED_EXPORT KDE_IMPORT
35 # define KJSEMBED_EXPORT KDE_EXPORT
38 #if !defined(Q_OS_WIN)
46 #include <QtCore/QTextStream>
53 #include <kjs/ustring.h>
54 #include <kjs/identifier.h>
55 #include <kjs/value.h>
60 return QString((QChar*)u.data(), u.size());
64 return QString((QChar*)i.data(), i.size());
68 return KJS::UString((KJS::UChar*)qs.data(), qs.size());
100 #define i18n(x) QString(x)
105 return i18n(
string.toUtf8().
data(), comment.toUtf8().data());
107 template <
typename A1>
108 inline QString i18n (
const char *
text,
const A1 &a1)
110 return i18n(text).arg(a1);
112 template <
typename A1,
typename A2>
113 inline QString i18n (
const char *text,
const A1 &a1,
const A2 &a2)
115 return i18n(text).arg(a1).arg(a2);
117 template <
typename A1,
typename A2,
typename A3>
118 inline QString i18n (
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3)
120 return i18n(text).arg(a1).arg(a2).arg(a3);
122 template <
typename A1,
typename A2,
typename A3,
typename A4>
123 inline QString i18n (
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4)
125 return i18n(text).arg(a1).arg(a2).arg(a3).arg(a4);
130 #endif // KJSEGLOBAL_H
KJSEMBED_EXPORT QTextStream * conin()
KJSEMBED_EXPORT QTextStream * conout()
KJS::JSCell * jsString(const QString &s)
KJS::UString toUString(const QString &qs)
KJSEMBED_EXPORT QTextStream * conerr()
QString toQString(const KJS::UString &u)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:53 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.