![]() |
Qt 6.x
The Qt SDK
|
#include <qbytearrayview.h>
Public Types | |
typedef char | storage_type |
typedef const char | value_type |
typedef qptrdiff | difference_type |
typedef qsizetype | size_type |
typedef value_type & | reference |
typedef value_type & | const_reference |
typedef value_type * | pointer |
typedef value_type * | const_pointer |
typedef pointer | iterator |
typedef const_pointer | const_iterator |
typedef std::reverse_iterator< iterator > | reverse_iterator |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
Public Member Functions | |
constexpr | QByteArrayView () noexcept |
constexpr | QByteArrayView (std::nullptr_t) noexcept |
template<typename Byte , if_compatible_byte< Byte > = true> | |
constexpr | QByteArrayView (const Byte *data, qsizetype len) |
template<typename Byte , if_compatible_byte< Byte > = true> | |
constexpr | QByteArrayView (const Byte *first, const Byte *last) |
template<typename Pointer , if_compatible_pointer< Pointer > = true> | |
constexpr | QByteArrayView (const Pointer &data) noexcept |
template<typename ByteArray , if_compatible_qbytearray_like< ByteArray > = true> | |
QByteArrayView (const ByteArray &ba) noexcept | |
template<typename Container , if_compatible_container< Container > = true> | |
constexpr | QByteArrayView (const Container &c) noexcept |
template<size_t Size> | |
constexpr | QByteArrayView (const char(&data)[Size]) noexcept |
QByteArray | toByteArray () const |
constexpr qsizetype | size () const noexcept |
constexpr const_pointer | data () const noexcept |
constexpr const_pointer | constData () const noexcept |
constexpr char | operator[] (qsizetype n) const |
constexpr char | at (qsizetype n) const |
constexpr QByteArrayView | first (qsizetype n) const |
constexpr QByteArrayView | last (qsizetype n) const |
constexpr QByteArrayView | sliced (qsizetype pos) const |
constexpr QByteArrayView | sliced (qsizetype pos, qsizetype n) const |
constexpr QByteArrayView | chopped (qsizetype len) const |
constexpr QByteArrayView | left (qsizetype n) const |
constexpr QByteArrayView | right (qsizetype n) const |
constexpr QByteArrayView | mid (qsizetype pos, qsizetype n=-1) const |
constexpr void | truncate (qsizetype n) |
constexpr void | chop (qsizetype n) |
QByteArrayView | trimmed () const noexcept |
short | toShort (bool *ok=nullptr, int base=10) const |
ushort | toUShort (bool *ok=nullptr, int base=10) const |
int | toInt (bool *ok=nullptr, int base=10) const |
uint | toUInt (bool *ok=nullptr, int base=10) const |
long | toLong (bool *ok=nullptr, int base=10) const |
ulong | toULong (bool *ok=nullptr, int base=10) const |
qlonglong | toLongLong (bool *ok=nullptr, int base=10) const |
qulonglong | toULongLong (bool *ok=nullptr, int base=10) const |
float | toFloat (bool *ok=nullptr) const |
double | toDouble (bool *ok=nullptr) const |
bool | startsWith (QByteArrayView other) const noexcept |
bool | startsWith (char c) const noexcept |
bool | endsWith (QByteArrayView other) const noexcept |
bool | endsWith (char c) const noexcept |
qsizetype | indexOf (QByteArrayView a, qsizetype from=0) const noexcept |
qsizetype | indexOf (char ch, qsizetype from=0) const noexcept |
bool | contains (QByteArrayView a) const noexcept |
bool | contains (char c) const noexcept |
qsizetype | lastIndexOf (QByteArrayView a) const noexcept |
qsizetype | lastIndexOf (QByteArrayView a, qsizetype from) const noexcept |
qsizetype | lastIndexOf (char ch, qsizetype from=-1) const noexcept |
qsizetype | count (QByteArrayView a) const noexcept |
qsizetype | count (char ch) const noexcept |
int | compare (QByteArrayView a, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept |
bool | isValidUtf8 () const noexcept |
constexpr const_iterator | begin () const noexcept |
constexpr const_iterator | end () const noexcept |
constexpr const_iterator | cbegin () const noexcept |
constexpr const_iterator | cend () const noexcept |
constexpr const_reverse_iterator | rbegin () const noexcept |
constexpr const_reverse_iterator | rend () const noexcept |
constexpr const_reverse_iterator | crbegin () const noexcept |
constexpr const_reverse_iterator | crend () const noexcept |
constexpr bool | empty () const noexcept |
constexpr char | front () const |
constexpr char | back () const |
constexpr bool | isNull () const noexcept |
constexpr bool | isEmpty () const noexcept |
constexpr qsizetype | length () const noexcept |
constexpr char | first () const |
constexpr char | last () const |
Static Public Member Functions | |
template<typename Byte , size_t Size, if_compatible_byte< Byte > = true> | |
static constexpr QByteArrayView | fromArray (const Byte(&data)[Size]) noexcept |
Friends | |
bool | operator== (QByteArrayView lhs, QByteArrayView rhs) noexcept |
bool | operator!= (QByteArrayView lhs, QByteArrayView rhs) noexcept |
bool | operator< (QByteArrayView lhs, QByteArrayView rhs) noexcept |
bool | operator<= (QByteArrayView lhs, QByteArrayView rhs) noexcept |
bool | operator> (QByteArrayView lhs, QByteArrayView rhs) noexcept |
bool | operator>= (QByteArrayView lhs, QByteArrayView rhs) noexcept |
Definition at line 74 of file qbytearrayview.h.
Definition at line 87 of file qbytearrayview.h.
typedef value_type* QByteArrayView::const_pointer |
Definition at line 84 of file qbytearrayview.h.
Definition at line 82 of file qbytearrayview.h.
typedef std::reverse_iterator<const_iterator> QByteArrayView::const_reverse_iterator |
Definition at line 89 of file qbytearrayview.h.
Definition at line 79 of file qbytearrayview.h.
typedef pointer QByteArrayView::iterator |
Definition at line 86 of file qbytearrayview.h.
typedef value_type* QByteArrayView::pointer |
Definition at line 83 of file qbytearrayview.h.
typedef value_type& QByteArrayView::reference |
Definition at line 81 of file qbytearrayview.h.
typedef std::reverse_iterator<iterator> QByteArrayView::reverse_iterator |
Definition at line 88 of file qbytearrayview.h.
typedef qsizetype QByteArrayView::size_type |
Definition at line 80 of file qbytearrayview.h.
typedef char QByteArrayView::storage_type |
Definition at line 77 of file qbytearrayview.h.
typedef const char QByteArrayView::value_type |
Definition at line 78 of file qbytearrayview.h.
|
inlineconstexprnoexcept |
Definition at line 130 of file qbytearrayview.h.
|
inlineconstexprnoexcept |
Definition at line 132 of file qbytearrayview.h.
|
inlineconstexpr |
Definition at line 136 of file qbytearrayview.h.
|
inlineconstexpr |
Definition at line 141 of file qbytearrayview.h.
|
inlineconstexprnoexcept |
Definition at line 149 of file qbytearrayview.h.
|
inlinenoexcept |
Definition at line 158 of file qbytearrayview.h.
|
inlineconstexprnoexcept |
Definition at line 163 of file qbytearrayview.h.
|
inlineconstexprnoexcept |
Definition at line 166 of file qbytearrayview.h.
|
inlineconstexpr |
Definition at line 188 of file qbytearrayview.h.
Referenced by QHttpHeaderParser::parseStatus().
|
inlineconstexpr |
Definition at line 302 of file qbytearrayview.h.
|
inlineconstexprnoexcept |
Definition at line 291 of file qbytearrayview.h.
|
inlineconstexprnoexcept |
Definition at line 293 of file qbytearrayview.h.
References begin().
Referenced by deviceNumber().
|
inlineconstexprnoexcept |
Definition at line 294 of file qbytearrayview.h.
Definition at line 215 of file qbytearrayview.h.
References Q_ASSERT.
Referenced by QMimeDataPrivate::retrieveTypedData().
|
inlineconstexpr |
Definition at line 198 of file qbytearrayview.h.
References Q_ASSERT.
|
inlinenoexcept |
Definition at line 338 of file qbytearrayview.h.
References Qt::CaseSensitive, QtPrivate::compareMemory(), and qstrnicmp().
Referenced by QOffsetStringArray< StaticString, OffsetList >::contains(), digestMd5ResponseHelper(), and QConfFileSettingsPrivate::readIniFile().
|
inlineconstexprnoexcept |
Definition at line 180 of file qbytearrayview.h.
Referenced by Moc::generate(), QV4::GlobalFunctions::method_parseInt(), dtlscallbacks::q_generate_cookie_callback(), QConfFileSettingsPrivate::readIniFile(), and QByteDataBuffer::readPointer().
|
inlinenoexcept |
Definition at line 269 of file qbytearrayview.h.
References indexOf().
|
inlinenoexcept |
Definition at line 267 of file qbytearrayview.h.
References indexOf().
Referenced by QAnyStringViewUtils::doesContain(), fieldNameCheck(), and parseOtoolLibraryLine().
|
inlinenoexcept |
Definition at line 281 of file qbytearrayview.h.
References ch, and QtPrivate::count().
|
inlinenoexcept |
Definition at line 279 of file qbytearrayview.h.
References QtPrivate::count().
Referenced by readGpuFeatures().
|
inlineconstexprnoexcept |
Definition at line 297 of file qbytearrayview.h.
Referenced by Moc::generate().
|
inlineconstexprnoexcept |
Definition at line 298 of file qbytearrayview.h.
Referenced by Moc::generate().
|
inlineconstexprnoexcept |
Definition at line 179 of file qbytearrayview.h.
References m_data.
Referenced by QConcatenable< QByteArrayView >::appendTo(), QGstreamerFormatInfo::audioCodecForCaps(), QtPrivate::compareMemory(), QUtf8::compareUtf8(), QGstreamerFormatInfo::fileFormatForCaps(), findSectionName(), QLocationUtils::getSatInfoFromNmea(), QGstreamerFormatInfo::imageFormatForCaps(), QStaticByteArrayMatcher< N >::indexIn(), QPluginParsedMetaData::parse(), Parser::printMsg(), qlocationutils_readGga(), qlocationutils_readGll(), qlocationutils_readGsa(), qlocationutils_readGsa(), qlocationutils_readRmc(), qlocationutils_readVtg(), qlocationutils_readZda(), qputenv(), QByteArray::replace(), QByteArray::replace(), toByteArray(), QGstreamerFormatInfo::videoCodecForCaps(), and QQmlJSStreamWriter::writeLibraryImport().
|
inlineconstexprnoexcept |
Definition at line 300 of file qbytearrayview.h.
|
inlineconstexprnoexcept |
Definition at line 292 of file qbytearrayview.h.
|
inlinenoexcept |
Definition at line 259 of file qbytearrayview.h.
|
inlinenoexcept |
Definition at line 257 of file qbytearrayview.h.
References QtPrivate::endsWith(), and other().
Referenced by parseETag(), parseIfMatch(), and parseIfNoneMatch().
|
inlineconstexpr |
Definition at line 311 of file qbytearrayview.h.
|
inlineconstexpr |
Definition at line 190 of file qbytearrayview.h.
References Q_ASSERT.
Referenced by QLocationUtils::getPosInfoFromNmea(), QLocationUtils::getSatInUseFromNmea(), isEntryInIanaList(), QByteDataBuffer::readPointer(), and verifyDigestMD5().
|
inlinestaticconstexprnoexcept |
Definition at line 174 of file qbytearrayview.h.
References Size.
Referenced by QNfcTagType4NdefFsm::getCommand().
|
inlineconstexpr |
Definition at line 301 of file qbytearrayview.h.
Definition at line 264 of file qbytearrayview.h.
References ch, and QtPrivate::findByteArray().
|
inlinenoexcept |
Definition at line 262 of file qbytearrayview.h.
References QtPrivate::findByteArray().
Referenced by QLocationUtils::getPosInfoFromNmea(), QLocationUtils::getSatInfoFromNmea(), QLocationUtils::getSatInUseFromNmea(), QLocationUtils::hasValidNmeaChecksum(), QByteArray::indexOf(), isEntryInIanaList(), and QHttpHeaderParser::parseStatus().
|
inlineconstexprnoexcept |
Definition at line 308 of file qbytearrayview.h.
Referenced by dataToUrls(), Parser::findEnumValues(), findSectionName(), QLocationUtils::getSatInfoFromNmea(), QLocationUtils::getSatInUseFromNmea(), parseOtoolLibraryLine(), and QQmlJSStreamWriter::writeLibraryImport().
|
inlineconstexprnoexcept |
Definition at line 307 of file qbytearrayview.h.
References m_data.
Referenced by QtPrivate::compareMemory(), and digestMd5ResponseHelper().
|
inlinenoexcept |
Definition at line 286 of file qbytearrayview.h.
References QtPrivate::isValidUtf8().
Referenced by QBasicUtf8StringView< UseChar8T >::isValidUtf8().
|
inlineconstexpr |
Definition at line 312 of file qbytearrayview.h.
|
inlineconstexpr |
Definition at line 192 of file qbytearrayview.h.
References Q_ASSERT.
Referenced by Moc::generate().
Definition at line 276 of file qbytearrayview.h.
References ch, and QtPrivate::lastIndexOf().
|
inlinenoexcept |
Definition at line 272 of file qbytearrayview.h.
References lastIndexOf().
Referenced by QByteArray::lastIndexOf().
|
inlinenoexcept |
Definition at line 274 of file qbytearrayview.h.
References QtPrivate::lastIndexOf().
|
inlineconstexpr |
Definition at line 201 of file qbytearrayview.h.
Referenced by enumsToValues(), and readGpuFeatures().
|
inlineconstexprnoexcept |
Definition at line 309 of file qbytearrayview.h.
Referenced by QQmlJSStreamWriter::writeLibraryImport(), and QQmlJSStreamWriter::writeScriptBinding().
|
inlineconstexpr |
Definition at line 205 of file qbytearrayview.h.
Referenced by parseOtoolLibraryLine().
|
inlineconstexpr |
Definition at line 182 of file qbytearrayview.h.
|
inlineconstexprnoexcept |
Definition at line 295 of file qbytearrayview.h.
|
inlineconstexprnoexcept |
Definition at line 296 of file qbytearrayview.h.
References begin().
|
inlineconstexpr |
Definition at line 203 of file qbytearrayview.h.
|
inlineconstexprnoexcept |
Definition at line 178 of file qbytearrayview.h.
Referenced by QConcatenable< QByteArrayView >::appendTo(), QtPrivate::compareMemory(), QUtf8::compareUtf8(), createFromName(), deviceNumber(), findSectionName(), QLocationUtils::getNmeaSentenceType(), QLocationUtils::getSatelliteSystem(), QLocationUtils::getSatInfoFromNmea(), QLocationUtils::hasValidNmeaChecksum(), HPack::huffman_encode_string(), HPack::huffman_encoded_bit_length(), QStaticByteArrayMatcher< N >::indexIn(), metaEnumFromType(), QV4::GlobalFunctions::method_parseInt(), QPluginParsedMetaData::parse(), QHttpHeaderParser::parseStatus(), dtlscallbacks::q_generate_cookie_callback(), qlocationutils_readGga(), qlocationutils_readGll(), qlocationutils_readGsa(), qlocationutils_readGsa(), qlocationutils_readRmc(), qlocationutils_readVtg(), qlocationutils_readZda(), qputenv(), QConfFileSettingsPrivate::readIniFile(), QByteArray::replace(), QByteArray::replace(), QUrl::setUserInfo(), QConcatenable< QByteArrayView >::size(), QSGCompressedTextureFactory::textureByteCount(), and toByteArray().
|
inlineconstexpr |
Definition at line 194 of file qbytearrayview.h.
Referenced by QLocationUtils::getNmeaSentenceType(), QLocationUtils::getSatelliteSystem(), QLocationUtils::hasValidNmeaChecksum(), isEntryInIanaList(), QPluginParsedMetaData::parse(), QAuthenticatorPrivate::parseHttpResponse(), and QHttpHeaderParser::parseStatus().
|
inlineconstexpr |
Definition at line 196 of file qbytearrayview.h.
|
inlinenoexcept |
Definition at line 254 of file qbytearrayview.h.
|
inlinenoexcept |
Definition at line 252 of file qbytearrayview.h.
References other(), and QtPrivate::startsWith().
Referenced by Parser::findEnumValues(), gradleBuildFlags(), QV4::GlobalFunctions::method_parseFloat(), parseETag(), parseIfMatch(), parseIfNoneMatch(), parseOtoolLibraryLine(), and QHttpHeaderParser::parseStatus().
|
inline |
Definition at line 709 of file qbytearray.h.
References data(), and size().
Referenced by QSGCompressedTexture::commitTextureOperations(), QMessageAuthenticationCode::hash(), QCryptographicHash::result(), QMessageAuthenticationCode::result(), and QUuid::toRfc4122().
|
inline |
Definition at line 244 of file qbytearrayview.h.
References ok, and QtPrivate::toDouble().
Referenced by QByteArray::toDouble().
|
inline |
Definition at line 237 of file qbytearrayview.h.
References ok, and QtPrivate::toFloat().
|
inline |
Definition at line 225 of file qbytearrayview.h.
Referenced by QLocationUtils::hasValidNmeaChecksum(), and QAnyStringViewUtils::toInt().
|
inline |
Definition at line 229 of file qbytearrayview.h.
Definition at line 233 of file qbytearrayview.h.
|
inline |
Definition at line 221 of file qbytearrayview.h.
Definition at line 227 of file qbytearrayview.h.
Referenced by findSectionName().
Definition at line 231 of file qbytearrayview.h.
|
inline |
Definition at line 235 of file qbytearrayview.h.
Definition at line 223 of file qbytearrayview.h.
|
inlinenoexcept |
Definition at line 219 of file qbytearrayview.h.
References QtPrivate::trimmed().
Referenced by dataToUrls(), QPdfDocument::pageIndexForLabel(), parseIfMatch(), and parseIfNoneMatch().
Definition at line 213 of file qbytearrayview.h.
References Q_ASSERT.
Referenced by createFromName().
|
friend |
Definition at line 316 of file qbytearrayview.h.
|
friend |
Definition at line 318 of file qbytearrayview.h.
|
friend |
Definition at line 320 of file qbytearrayview.h.
|
friend |
Definition at line 314 of file qbytearrayview.h.
|
friend |
Definition at line 322 of file qbytearrayview.h.
|
friend |
Definition at line 324 of file qbytearrayview.h.