Okular
kjs_util.cpp
36 if (url.scheme() != QLatin1String("file") || url.scheme() != QLatin1String("http") || url.scheme() != QLatin1String("https")) {
37 return context->throwException(QStringLiteral("Protocol not valid: '") + url.scheme() + QLatin1Char('\''));
98 const QStringList str = arguments.at(1).toString(context).split(QRegularExpression(QStringLiteral("\\W")));
105 QString myStr = QStringLiteral("%1/%2/%3 %4:%5:%6").arg(str[1], str[2], str[3], str[4], str[5], str[6]);
168 const QLocale locale2(locale.decimalPoint() == QLatin1Char('.') ? QStringLiteral("de") : QStringLiteral("en"));
double toNumber(KJSContext *ctx)
int count() const
QStringList split(const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
int count(const T &value) const const
bool isNumber() const
QString dateTimeFormat(QLocale::FormatType format) const const
FullyDecoded
KJSObject at(int idx) const
bool isEmpty() const const
QUrl fromLocalFile(const QString &localFile)
KJSObject throwException(const QString &message) const
QString toString(qlonglong i) const const
int toInt32(KJSContext *ctx)
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const const
QString & replace(int position, int n, QChar after)
LocaleWrapper locale()
void defineFunction(KJSContext *ctx, const QString &name, FunctionCall callback)
KJSObject constructObject(KJSContext *ctx, void *internalValue=nullptr)
ShortFormat
KDB_EXPORT QString numberToString(double value, int decimalPlaces)
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
QString & insert(int position, QChar ch)
QString toString(KJSContext *ctx)
KIOCORE_EXPORT QString number(KIO::filesize_t size)
KGuiItem ok()
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
char toLatin1() const const
void setProperty(KJSContext *ctx, const QString &name, bool value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Mar 23 2023 04:04:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Mar 23 2023 04:04:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.