Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include "qcborvalue.h"
#include "qcborvalue_p.h"
#include "qdatastream.h"
#include "qcborarray.h"
#include "qcbormap.h"
#include <qendian.h>
#include <qlocale.h>
#include <qdatetime.h>
#include <qtimezone.h>
#include <private/qnumeric_p.h>
#include <private/qsimd_p.h>
#include <new>
#include "qcborarray.cpp"
#include "qcbormap.cpp"
#include "moc_qcborvalue.cpp"
Go to the source code of this file.
Variables | |
static QT_BEGIN_NAMESPACE constexpr quint64 | MaxAcceptableMemoryUse = (sizeof(void*) == 4 ? 256 : 1024) * 1024 * 1024 |
static Q_DECL_UNUSED constexpr int | MaximumRecursionDepth = 1024 |
static Q_DECL_UNUSED constexpr quint64 | MaximumPreallocatedElementCount |
|
static |
Definition at line 753 of file qcborvalue.cpp.
References d.
Referenced by convertArrayToMap(), QCborContainerPrivate::findOrAddMapKey(), QCborContainerPrivate::findOrAddMapKey(), maybeGrow(), and QCborValue::operator=().
|
staticnoexcept |
Definition at line 1315 of file qcborvalue.cpp.
References c2, compareElementRecursive(), and i.
Referenced by QCborArray::compare(), QCborMap::compare(), and compareElementRecursive().
Definition at line 1217 of file qcborvalue.cpp.
References QCborValue::Double, QCborValue::Integer, Q_ASSERT, and QCborValue::Tag.
Referenced by compareElementRecursive().
|
staticnoexcept |
Definition at line 1260 of file qcborvalue.cpp.
References c2, compareContainer(), compareElementNoData(), compareStringsInUtf8(), Q_ASSERT, and typeOrder().
Referenced by QCborValue::compare(), compareContainer(), QCborContainerPrivate::compareElement_helper(), QCborValueConstRef::comparesEqual_helper(), QCborValueConstRef::comparesEqual_helper(), QCborValueConstRef::compareThreeWay_helper(), and QCborValueConstRef::compareThreeWay_helper().
|
noexcept |
Definition at line 1499 of file qcborvalue.cpp.
Definition at line 1525 of file qcborvalue.cpp.
|
noexcept |
Definition at line 1368 of file qcborvalue.cpp.
|
staticnoexcept |
Definition at line 1128 of file qcborvalue.cpp.
References nextUtf32Character(), r1, r2, and stringLengthInUtf8().
Referenced by compareElementRecursive(), and compareStringsInUtf8().
|
staticnoexcept |
Definition at line 1209 of file qcborvalue.cpp.
References compareStringsInUtf8().
|
staticnoexcept |
Definition at line 1162 of file qcborvalue.cpp.
References ptr(), Q_UNUSED, and stringLengthInUtf8().
|
static |
Definition at line 2444 of file qcborvalue.cpp.
References assignContainer(), QMap< Key, T >::begin(), QCborContainerPrivate::detach(), i, QCborValue::Integer, QCborValue::Invalid, map, Q_ASSERT, Q_LIKELY, and qWarning.
Referenced by QCborContainerPrivate::findOrAddMapKey(), and QCborContainerPrivate::findOrAddMapKey().
|
static |
Definition at line 764 of file qcborvalue.cpp.
References QCborValue::ByteArray, d, QCborValue::DateTime, DateTimeString, QUrl::DecodeReserved, QCborValue::Double, encoded, QDateTime::fromMSecsSinceEpoch(), QCborValue::Integer, QString::isEmpty(), Qt::ISODateWithMs, QUrl::isValid(), ok, qMin(), qMulOverflow(), RegularExpression, QCborValue::RegularExpression, QByteArray::size(), QString::size(), QUrl::StrictMode, QCborValue::String, QCborValue::Tag, tag, text, QString::toLatin1(), QUrl::toString(), QString::toUtf8(), UnixTime_t, url, Url, QCborValue::Url, QTimeZone::UTC, Uuid, and QCborValue::Uuid.
Referenced by QCborValue::QCborValue().
|
static |
Definition at line 3260 of file qcborvalue.cpp.
References QCborValue::Array, QCborValue::ByteArray, QCborValue::DateTime, Qt::dec(), QCborValue::Double, QCborValue::False, Qt::hex(), i, QCborValue::Integer, QCborValue::Invalid, QCborValue::Map, QCborValue::Null, qt_cbor_tag_id(), QCborValue::RegularExpression, QCborValue::SimpleType, QCborValue::String, QCborValue::Tag, tag, QCborValue::True, QCborValue::Undefined, QCborValue::Url, and QCborValue::Uuid.
Referenced by operator<<().
|
static |
Definition at line 2473 of file qcborvalue.cpp.
References assignContainer(), QCborContainerPrivate::grow(), Q_ASSERT, and Undefined.
Referenced by QCborValue::operator[]().
|
staticnoexcept |
Definition at line 1099 of file qcborvalue.cpp.
References ptr(), Q_ASSERT, and R.
Referenced by compareStringsInUtf8(), and stringLengthInUtf8().
QDebug operator<< | ( | QDebug | dbg, |
const QCborValue & | v ) |
Definition at line 3320 of file qcborvalue.cpp.
References debugContents().
QDebug operator<< | ( | QDebug | dbg, |
QCborKnownTags | tag ) |
Definition at line 3350 of file qcborvalue.cpp.
References qt_cbor_tag_id(), and tag.
QDebug operator<< | ( | QDebug | dbg, |
QCborSimpleType | st ) |
Definition at line 3327 of file qcborvalue.cpp.
References qt_cbor_simpletype_id().
Definition at line 3337 of file qcborvalue.cpp.
References qt_cbor_tag_id(), and tag.
QDataStream & operator>> | ( | QDataStream & | stream, |
QCborValue & | value ) |
Definition at line 3370 of file qcborvalue.cpp.
size_t qHash | ( | const QCborValue & | value, |
size_t | seed ) |
Definition at line 3133 of file qcborvalue.cpp.
References QCborValue::Array, QCborValue::ByteArray, QCborValue::DateTime, QCborValue::Double, QCborValue::False, hash, QCborValue::Integer, QCborValue::Invalid, QCborValue::Map, QCborValue::Null, Q_ASSERT, qHash(), QCborValue::RegularExpression, seed, QCborValue::SimpleType, QCborValue::String, QCborValue::Tag, QCborValue::True, QCborValue::Undefined, QCborValue::Url, and QCborValue::Uuid.
Referenced by qHash().
Q_CORE_EXPORT const char * qt_cbor_simpletype_id | ( | QCborSimpleType | st | ) |
Definition at line 3186 of file qcborvalue.cpp.
References False, Null, True, and Undefined.
Referenced by operator<<().
Q_CORE_EXPORT const char * qt_cbor_tag_id | ( | QCborTag | tag | ) |
Definition at line 3201 of file qcborvalue.cpp.
References Base64, Base64url, Bigfloat, COSE_Encrypt, COSE_Encrypt0, COSE_Mac, COSE_Mac0, COSE_Sign, COSE_Sign1, DateTimeString, Decimal, EncodedCbor, ExpectedBase16, ExpectedBase64, ExpectedBase64url, MimeMessage, NegativeBignum, PositiveBignum, RegularExpression, Signature, tag, UnixTime_t, Url, and Uuid.
Referenced by debugContents(), operator<<(), and operator<<().
Definition at line 1188 of file qstring.cpp.
Referenced by QCborContainerPrivate::appendAsciiString(), QtPrivate::count(), and QtPrivate::findString().
|
static |
Definition at line 2426 of file qcborvalue.cpp.
References QCborValue::Array, QCborContainerPrivate::elements, and QList< T >::size().
Referenced by QCborValue::operator[]().
|
staticnoexcept |
Definition at line 1120 of file qcborvalue.cpp.
References nextUtf32Character(), and ptr().
Referenced by compareStringsInUtf8(), and compareStringsInUtf8().
|
inlinestatic |
Definition at line 907 of file qcborvalue.cpp.
References QCborValue::Tag.
Referenced by compareElementRecursive().
|
staticconstexpr |
Definition at line 30 of file qcborvalue.cpp.
|
staticconstexpr |
Definition at line 41 of file qcborvalue.cpp.
|
staticconstexpr |
Definition at line 40 of file qcborvalue.cpp.