43 #include <QtCore/qglobal.h>
44 #include <QtCore/qstring.h>
45 #include <QtCore/qshareddata.h>
46 #include <QtCore/qcborvalue.h>
79 #ifndef QT_NO_CAST_FROM_ASCII
115 bool toBool(
bool defaultValue =
false)
const;
116 int toInt(
int defaultValue = 0)
const;
118 double toDouble(
double defaultValue = 0)
const;
126 #if QT_STRINGVIEW_LEVEL < 2
177 inline bool toBool(
bool defaultValue =
false)
const {
return toValue().toBool(defaultValue); }
178 inline int toInt(
int defaultValue = 0)
const {
return toValue().toInt(defaultValue); }
180 inline double toDouble(
double defaultValue = 0)
const {
return toValue().toDouble(defaultValue); }
211 {
return !(lhs ==
rhs); }
215 #if !defined(QT_NO_DEBUG_STREAM) && !defined(QT_JSON_READONLY)
219 #ifndef QT_NO_DATASTREAM
small capitals from c petite p scientific i
[1]
The QCborValue class encapsulates a value in CBOR.
The QDataStream class provides serialization of binary data to a QIODevice.
operator>>(QDataStream &ds, qfloat16 &f)
operator<<(QDataStream &ds, qfloat16 f)
The QDebug class provides an output stream for debugging information.
template< typename Enum > bool operator!=(Enum lhs, QFlags< Enum > rhs)
template< typename Enum > size_t qHash(QFlags< Enum > flags, size_t seed=0) noexcept
The QJsonArray class encapsulates a JSON array.
The QJsonObject class encapsulates a JSON object.
The QJsonValue class encapsulates a value in JSON.
QT_ASCII_CAST_WARN QJsonValue(const char *s)
The QJsonValueRef class is a helper class for QJsonValue.
bool toBool(bool defaultValue=false) const
int toInt(int defaultValue=0) const
QJsonValue::Type type() const
const QJsonValue operator[](qsizetype i) const
qint64 toInteger(qint64 defaultValue=0) const
QJsonValueRef(QJsonArray *array, qsizetype idx)
bool operator==(const QJsonValue &other) const
bool operator!=(const QJsonValue &other) const
QString toString(const QString &defaultValue={}) const
QJsonValueRef(const QJsonValueRef &)=default
QJsonValueRef(QJsonObject *object, qsizetype idx)
const QJsonValue operator[](QStringView key) const
double toDouble(double defaultValue=0) const
const QJsonValue operator[](QLatin1String key) const
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal.
The QString class provides a Unicode character string.
The QStringView class provides a unified view on UTF-16 strings with a read-only subset of the QStrin...
The QVariant class acts like a union for the most common Qt data types.
auto it unsigned count const
qsizetype fromUtf8(uchar b, OutputPtr &dst, InputPtr &src, InputPtr end)
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION ParsedNumber< double > toDouble(QByteArrayView a) noexcept
EGLOutputLayerEXT EGLint EGLAttrib value
unsigned long long quint64
bool operator==(const QJsonValueRef &lhs, const QJsonValueRef &rhs)
Q_CORE_EXPORT QDebug operator<<(QDebug, const QJsonValue &)
bool operator!=(const QJsonValueRef &lhs, const QJsonValueRef &rhs)
GLboolean GLboolean GLboolean b
GLsizei const GLfloat * v
[13]
GLboolean GLboolean GLboolean GLboolean a
[7]
#define Q_DECLARE_SHARED(TYPE)