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>.
Loading...
Searching...
No Matches
QByteArrayView Class Reference

#include <qbytearrayview.h>

+ Collaboration diagram for QByteArrayView:

Public Types

typedef char storage_type
 
typedef const char value_type
 
typedef qptrdiff difference_type
 
typedef qsizetype size_type
 
typedef value_typereference
 
typedef value_typeconst_reference
 
typedef value_typepointer
 
typedef value_typeconst_pointer
 
typedef pointer iterator
 
typedef const_pointer const_iterator
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
typedef std::reverse_iterator< const_iteratorconst_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
 
constexpr QByteArrayView (QLatin1StringView v) noexcept
 
constexpr QByteArrayView (QUtf8StringView v) 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
 
constexpr bool startsWith (char c) const noexcept
 
bool endsWith (QByteArrayView other) const noexcept
 
constexpr 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 Q_IMPLICIT operator std::string_view () const noexcept
 
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 comparesEqual (const QByteArrayView &lhs, const QByteArrayView &rhs) noexcept
 
Qt::strong_ordering compareThreeWay (const QByteArrayView &lhs, const QByteArrayView &rhs) noexcept
 
bool comparesEqual (const QByteArrayView &lhs, const char *rhs) noexcept
 
Qt::strong_ordering compareThreeWay (const QByteArrayView &lhs, const char *rhs) noexcept
 
Q_CORE_EXPORT bool comparesEqual (const QByteArrayView &lhs, const QChar &rhs) noexcept
 
Q_CORE_EXPORT Qt::strong_ordering compareThreeWay (const QByteArrayView &lhs, const QChar &rhs) noexcept
 
Q_CORE_EXPORT bool comparesEqual (const QByteArrayView &lhs, char16_t rhs) noexcept
 
Q_CORE_EXPORT Qt::strong_ordering compareThreeWay (const QByteArrayView &lhs, char16_t rhs) noexcept
 

Detailed Description

Definition at line 76 of file qbytearrayview.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 89 of file qbytearrayview.h.

◆ const_pointer

Definition at line 86 of file qbytearrayview.h.

◆ const_reference

Definition at line 84 of file qbytearrayview.h.

◆ const_reverse_iterator

Definition at line 91 of file qbytearrayview.h.

◆ difference_type

Definition at line 81 of file qbytearrayview.h.

◆ iterator

Definition at line 88 of file qbytearrayview.h.

◆ pointer

Definition at line 85 of file qbytearrayview.h.

◆ reference

Definition at line 83 of file qbytearrayview.h.

◆ reverse_iterator

typedef std::reverse_iterator<iterator> QByteArrayView::reverse_iterator

Definition at line 90 of file qbytearrayview.h.

◆ size_type

Definition at line 82 of file qbytearrayview.h.

◆ storage_type

Definition at line 79 of file qbytearrayview.h.

◆ value_type

typedef const char QByteArrayView::value_type

Definition at line 80 of file qbytearrayview.h.

Constructor & Destructor Documentation

◆ QByteArrayView() [1/10]

constexpr QByteArrayView::QByteArrayView ( )
inlineconstexprnoexcept

Definition at line 132 of file qbytearrayview.h.

◆ QByteArrayView() [2/10]

constexpr QByteArrayView::QByteArrayView ( std::nullptr_t )
inlineconstexprnoexcept

Definition at line 134 of file qbytearrayview.h.

◆ QByteArrayView() [3/10]

template<typename Byte , if_compatible_byte< Byte > = true>
constexpr QByteArrayView::QByteArrayView ( const Byte * data,
qsizetype len )
inlineconstexpr

Definition at line 138 of file qbytearrayview.h.

◆ QByteArrayView() [4/10]

template<typename Byte , if_compatible_byte< Byte > = true>
constexpr QByteArrayView::QByteArrayView ( const Byte * first,
const Byte * last )
inlineconstexpr

Definition at line 143 of file qbytearrayview.h.

◆ QByteArrayView() [5/10]

template<typename Pointer , if_compatible_pointer< Pointer > = true>
constexpr QByteArrayView::QByteArrayView ( const Pointer & data)
inlineconstexprnoexcept

Definition at line 151 of file qbytearrayview.h.

◆ QByteArrayView() [6/10]

template<typename ByteArray , if_compatible_qbytearray_like< ByteArray > = true>
QByteArrayView::QByteArrayView ( const ByteArray & ba)
inlinenoexcept

Definition at line 160 of file qbytearrayview.h.

◆ QByteArrayView() [7/10]

template<typename Container , if_compatible_container< Container > = true>
constexpr QByteArrayView::QByteArrayView ( const Container & c)
inlineconstexprnoexcept

Definition at line 165 of file qbytearrayview.h.

◆ QByteArrayView() [8/10]

template<size_t Size>
constexpr QByteArrayView::QByteArrayView ( const char(&) data[Size])
inlineconstexprnoexcept

Definition at line 168 of file qbytearrayview.h.

◆ QByteArrayView() [9/10]

constexpr QByteArrayView::QByteArrayView ( QLatin1StringView v)
constexprnoexcept

Definition at line 352 of file qlatin1stringview.h.

◆ QByteArrayView() [10/10]

constexpr QByteArrayView::QByteArrayView ( QUtf8StringView v)
constexprnoexcept

Definition at line 417 of file qutf8stringview.h.

Member Function Documentation

◆ at()

constexpr char QByteArrayView::at ( qsizetype n) const
inlineconstexpr

Definition at line 193 of file qbytearrayview.h.

Referenced by calculatePosixDate(), and QHttpHeaderParser::parseStatus().

+ Here is the caller graph for this function:

◆ back()

constexpr char QByteArrayView::back ( ) const
inlineconstexpr

Definition at line 307 of file qbytearrayview.h.

References m_data, and Q_ASSERT.

◆ begin()

constexpr const_iterator QByteArrayView::begin ( ) const
inlineconstexprnoexcept

Definition at line 296 of file qbytearrayview.h.

Referenced by Http2::FrameWriter::append().

+ Here is the caller graph for this function:

◆ cbegin()

constexpr const_iterator QByteArrayView::cbegin ( ) const
inlineconstexprnoexcept

Definition at line 298 of file qbytearrayview.h.

References begin().

+ Here is the call graph for this function:

◆ cend()

constexpr const_iterator QByteArrayView::cend ( ) const
inlineconstexprnoexcept

Definition at line 299 of file qbytearrayview.h.

◆ chop()

constexpr void QByteArrayView::chop ( qsizetype n)
inlineconstexpr

Definition at line 220 of file qbytearrayview.h.

Referenced by makeCookieHeader(), and QMimeDataPrivate::retrieveTypedData().

+ Here is the caller graph for this function:

◆ chopped()

constexpr QByteArrayView QByteArrayView::chopped ( qsizetype len) const
inlineconstexpr

Definition at line 203 of file qbytearrayview.h.

◆ compare()

int QByteArrayView::compare ( QByteArrayView a,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 377 of file qbytearrayview.h.

References Qt::CaseSensitive, QtPrivate::compareMemory(), and qstrnicmp().

+ Here is the call graph for this function:

◆ constData()

constexpr const_pointer QByteArrayView::constData ( ) const
inlineconstexprnoexcept

Definition at line 185 of file qbytearrayview.h.

Referenced by Moc::generate(), and dtlscallbacks::q_generate_cookie_callback().

+ Here is the caller graph for this function:

◆ contains() [1/2]

bool QByteArrayView::contains ( char c) const
inlinenoexcept

Definition at line 274 of file qbytearrayview.h.

References indexOf().

+ Here is the call graph for this function:

◆ contains() [2/2]

bool QByteArrayView::contains ( QByteArrayView a) const
inlinenoexcept

Definition at line 272 of file qbytearrayview.h.

References indexOf().

Referenced by QAnyStringViewUtils::doesContain().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ count() [1/2]

qsizetype QByteArrayView::count ( char ch) const
inlinenoexcept

Definition at line 286 of file qbytearrayview.h.

References ch, and QtPrivate::count().

+ Here is the call graph for this function:

◆ count() [2/2]

qsizetype QByteArrayView::count ( QByteArrayView a) const
inlinenoexcept

Definition at line 284 of file qbytearrayview.h.

References QtPrivate::count().

+ Here is the call graph for this function:

◆ crbegin()

constexpr const_reverse_iterator QByteArrayView::crbegin ( ) const
inlineconstexprnoexcept

Definition at line 302 of file qbytearrayview.h.

Referenced by Moc::generate().

+ Here is the caller graph for this function:

◆ crend()

constexpr const_reverse_iterator QByteArrayView::crend ( ) const
inlineconstexprnoexcept

Definition at line 303 of file qbytearrayview.h.

Referenced by Moc::generate().

+ Here is the caller graph for this function:

◆ data()

constexpr const_pointer QByteArrayView::data ( ) const
inlineconstexprnoexcept

Definition at line 184 of file qbytearrayview.h.

References m_data.

Referenced by QGstreamerFormatInfo::audioCodecForCaps(), QtPrivate::compareMemory(), QGstreamerFormatInfo::fileFormatForCaps(), findSectionName(), QGstreamerFormatInfo::imageFormatForCaps(), Parser::printMsg(), QByteArray::replace(), QGstreamerFormatInfo::videoCodecForCaps(), and QQmlJSStreamWriter::writeLibraryImport().

+ Here is the caller graph for this function:

◆ empty()

constexpr bool QByteArrayView::empty ( ) const
inlineconstexprnoexcept

Definition at line 305 of file qbytearrayview.h.

◆ end()

constexpr const_iterator QByteArrayView::end ( ) const
inlineconstexprnoexcept

Definition at line 297 of file qbytearrayview.h.

Referenced by Http2::FrameWriter::append().

+ Here is the caller graph for this function:

◆ endsWith() [1/2]

constexpr bool QByteArrayView::endsWith ( char c) const
inlineconstexprnoexcept

Definition at line 264 of file qbytearrayview.h.

◆ endsWith() [2/2]

bool QByteArrayView::endsWith ( QByteArrayView other) const
inlinenoexcept

Definition at line 262 of file qbytearrayview.h.

References QtPrivate::endsWith(), and other().

Referenced by parseIfMatch(), and parseIfNoneMatch().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ first() [1/2]

constexpr char QByteArrayView::first ( ) const
inlineconstexpr

Definition at line 319 of file qbytearrayview.h.

◆ first() [2/2]

constexpr QByteArrayView QByteArrayView::first ( qsizetype n) const
inlineconstexpr

Definition at line 195 of file qbytearrayview.h.

Referenced by QUtcTimeZonePrivate::QUtcTimeZonePrivate(), QByteDataBuffer::readPointer(), and verifyDigestMD5().

+ Here is the caller graph for this function:

◆ fromArray()

template<typename Byte , size_t Size, if_compatible_byte< Byte > = true>
static constexpr QByteArrayView QByteArrayView::fromArray ( const Byte(&) data[Size])
inlinestaticconstexprnoexcept

Definition at line 179 of file qbytearrayview.h.

Referenced by QNfcTagType4NdefFsm::getCommand().

+ Here is the caller graph for this function:

◆ front()

constexpr char QByteArrayView::front ( ) const
inlineconstexpr

Definition at line 306 of file qbytearrayview.h.

References m_data, and Q_ASSERT.

◆ indexOf() [1/2]

qsizetype QByteArrayView::indexOf ( char ch,
qsizetype from = 0 ) const
inlinenoexcept

Definition at line 269 of file qbytearrayview.h.

References ch, and QtPrivate::findByteArray().

+ Here is the call graph for this function:

◆ indexOf() [2/2]

qsizetype QByteArrayView::indexOf ( QByteArrayView a,
qsizetype from = 0 ) const
inlinenoexcept

Definition at line 267 of file qbytearrayview.h.

References QtPrivate::findByteArray().

Referenced by QUtcTimeZonePrivate::QUtcTimeZonePrivate(), QHttpHeaderParser::parseStatus(), and qDecodeDataUrl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isEmpty()

constexpr bool QByteArrayView::isEmpty ( ) const
inlineconstexprnoexcept

Definition at line 316 of file qbytearrayview.h.

Referenced by findSectionName(), parse_comment(), parse_parameter(), parse_quoted_string(), and QQmlJSStreamWriter::writeLibraryImport().

+ Here is the caller graph for this function:

◆ isNull()

constexpr bool QByteArrayView::isNull ( ) const
inlineconstexprnoexcept

Definition at line 315 of file qbytearrayview.h.

References m_data.

Referenced by QtPrivate::compareMemory().

+ Here is the caller graph for this function:

◆ isValidUtf8()

bool QByteArrayView::isValidUtf8 ( ) const
inlinenoexcept

Definition at line 291 of file qbytearrayview.h.

References QtPrivate::isValidUtf8().

Referenced by QBasicUtf8StringView< UseChar8T >::isValidUtf8().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ last() [1/2]

constexpr char QByteArrayView::last ( ) const
inlineconstexpr

Definition at line 320 of file qbytearrayview.h.

◆ last() [2/2]

constexpr QByteArrayView QByteArrayView::last ( qsizetype n) const
inlineconstexpr

Definition at line 197 of file qbytearrayview.h.

Referenced by Moc::generate(), and QCborStreamReaderPrivate::readStringChunk_utf8().

+ Here is the caller graph for this function:

◆ lastIndexOf() [1/3]

qsizetype QByteArrayView::lastIndexOf ( char ch,
qsizetype from = -1 ) const
inlinenoexcept

Definition at line 281 of file qbytearrayview.h.

References ch, and QtPrivate::lastIndexOf().

+ Here is the call graph for this function:

◆ lastIndexOf() [2/3]

qsizetype QByteArrayView::lastIndexOf ( QByteArrayView a) const
inlinenoexcept

Definition at line 277 of file qbytearrayview.h.

References lastIndexOf().

Referenced by QAnyStringViewUtils::getLastIndexOf().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lastIndexOf() [3/3]

qsizetype QByteArrayView::lastIndexOf ( QByteArrayView a,
qsizetype from ) const
inlinenoexcept

Definition at line 279 of file qbytearrayview.h.

References QtPrivate::lastIndexOf().

+ Here is the call graph for this function:

◆ left()

constexpr QByteArrayView QByteArrayView::left ( qsizetype n) const
inlineconstexpr

Definition at line 206 of file qbytearrayview.h.

Referenced by readGpuFeatures(), and write_pbm_image().

+ Here is the caller graph for this function:

◆ length()

constexpr qsizetype QByteArrayView::length ( ) const
inlineconstexprnoexcept

Definition at line 317 of file qbytearrayview.h.

Referenced by QQmlJSStreamWriter::writeLibraryImport(), and QQmlJSStreamWriter::writeScriptBinding().

+ Here is the caller graph for this function:

◆ mid()

constexpr QByteArrayView QByteArrayView::mid ( qsizetype pos,
qsizetype n = -1 ) const
inlineconstexpr

Definition at line 210 of file qbytearrayview.h.

References m_data, and pos.

Referenced by QHttpNetworkReplyPrivate::getChunkSize(), QAuthenticatorPrivate::parseHttpResponse(), and QNetworkReplyHttpImplPrivate::postRequest().

+ Here is the caller graph for this function:

◆ operator std::string_view()

constexpr Q_IMPLICIT QByteArrayView::operator std::string_view ( ) const
inlineconstexprnoexcept

Definition at line 309 of file qbytearrayview.h.

References m_data.

◆ operator[]()

constexpr char QByteArrayView::operator[] ( qsizetype n) const
inlineconstexpr

Definition at line 187 of file qbytearrayview.h.

References m_data.

◆ rbegin()

constexpr const_reverse_iterator QByteArrayView::rbegin ( ) const
inlineconstexprnoexcept

Definition at line 300 of file qbytearrayview.h.

◆ rend()

constexpr const_reverse_iterator QByteArrayView::rend ( ) const
inlineconstexprnoexcept

Definition at line 301 of file qbytearrayview.h.

References begin().

+ Here is the call graph for this function:

◆ right()

constexpr QByteArrayView QByteArrayView::right ( qsizetype n) const
inlineconstexpr

Definition at line 208 of file qbytearrayview.h.

◆ size()

constexpr qsizetype QByteArrayView::size ( ) const
inlineconstexprnoexcept

Definition at line 183 of file qbytearrayview.h.

Referenced by QtPrivate::compareMemory(), findSectionName(), isScopeMatch(), makeCookieHeader(), QHttpHeaderParser::parseStatus(), dtlscallbacks::q_generate_cookie_callback(), QByteArray::replace(), and QSGCompressedTextureFactory::textureByteCount().

+ Here is the caller graph for this function:

◆ sliced() [1/2]

constexpr QByteArrayView QByteArrayView::sliced ( qsizetype pos) const
inlineconstexpr

Definition at line 199 of file qbytearrayview.h.

References pos.

Referenced by calculatePosixDate(), QLocationUtils::getNmeaSentenceType(), QLocationUtils::getSatelliteSystem(), QLocationUtils::hasValidNmeaChecksum(), isScopeMatch(), and QHttpHeaderParser::parseStatus().

+ Here is the caller graph for this function:

◆ sliced() [2/2]

constexpr QByteArrayView QByteArrayView::sliced ( qsizetype pos,
qsizetype n ) const
inlineconstexpr

Definition at line 201 of file qbytearrayview.h.

References pos.

◆ startsWith() [1/2]

constexpr bool QByteArrayView::startsWith ( char c) const
inlineconstexprnoexcept

Definition at line 259 of file qbytearrayview.h.

◆ startsWith() [2/2]

bool QByteArrayView::startsWith ( QByteArrayView other) const
inlinenoexcept

Definition at line 257 of file qbytearrayview.h.

References other(), and QtPrivate::startsWith().

Referenced by isScopeMatch(), parseIfMatch(), parseIfNoneMatch(), and QHttpHeaderParser::parseStatus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toByteArray()

QByteArray QByteArrayView::toByteArray ( ) const
inline

Definition at line 796 of file qbytearray.h.

References QByteArray().

Referenced by QSGCompressedTexture::commitTextureOperations(), QRestReplyPrivate::contentCharset(), QCryptographicHash::result(), QMessageAuthenticationCode::result(), QUuid::toRfc4122(), and QTimeZonePrivate::windowsIdToDefaultIanaId().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toDouble()

double QByteArrayView::toDouble ( bool * ok = nullptr) const
inline

Definition at line 249 of file qbytearrayview.h.

References ok, and QtPrivate::toDouble().

Referenced by QDoubleValidatorPrivate::fixupWithLocale(), and QByteArray::toDouble().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toFloat()

float QByteArrayView::toFloat ( bool * ok = nullptr) const
inline

Definition at line 242 of file qbytearrayview.h.

References ok, and QtPrivate::toFloat().

+ Here is the call graph for this function:

◆ toInt()

int QByteArrayView::toInt ( bool * ok = nullptr,
int base = 10 ) const
inline

Definition at line 230 of file qbytearrayview.h.

References base, and ok.

Referenced by QAnyStringViewUtils::toInt().

+ Here is the caller graph for this function:

◆ toLong()

long QByteArrayView::toLong ( bool * ok = nullptr,
int base = 10 ) const
inline

Definition at line 234 of file qbytearrayview.h.

References base, and ok.

◆ toLongLong()

qlonglong QByteArrayView::toLongLong ( bool * ok = nullptr,
int base = 10 ) const
inline

Definition at line 238 of file qbytearrayview.h.

References base, and ok.

Referenced by parseHeaderValue().

+ Here is the caller graph for this function:

◆ toShort()

short QByteArrayView::toShort ( bool * ok = nullptr,
int base = 10 ) const
inline

Definition at line 226 of file qbytearrayview.h.

References base, and ok.

◆ toUInt()

uint QByteArrayView::toUInt ( bool * ok = nullptr,
int base = 10 ) const
inline

Definition at line 232 of file qbytearrayview.h.

References base, and ok.

Referenced by findSectionName().

+ Here is the caller graph for this function:

◆ toULong()

ulong QByteArrayView::toULong ( bool * ok = nullptr,
int base = 10 ) const
inline

Definition at line 236 of file qbytearrayview.h.

References base, and ok.

◆ toULongLong()

qulonglong QByteArrayView::toULongLong ( bool * ok = nullptr,
int base = 10 ) const
inline

Definition at line 240 of file qbytearrayview.h.

References base, and ok.

◆ toUShort()

ushort QByteArrayView::toUShort ( bool * ok = nullptr,
int base = 10 ) const
inline

Definition at line 228 of file qbytearrayview.h.

References base, and ok.

◆ trimmed()

QByteArrayView QByteArrayView::trimmed ( ) const
inlinenoexcept

Definition at line 224 of file qbytearrayview.h.

References QtPrivate::trimmed().

Referenced by dataToUrls(), QHostInfo::localDomainName(), parseHeaderValue(), parseMatchImpl(), QTimer::singleShot(), and QChronoTimer::singleShot().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ truncate()

constexpr void QByteArrayView::truncate ( qsizetype n)
inlineconstexpr

Definition at line 218 of file qbytearrayview.h.

Friends And Related Symbol Documentation

◆ comparesEqual [1/4]

Q_CORE_EXPORT bool comparesEqual ( const QByteArrayView & lhs,
char16_t rhs )
friend

Definition at line 6732 of file qstring.cpp.

◆ comparesEqual [2/4]

bool comparesEqual ( const QByteArrayView & lhs,
const char * rhs )
friend

Definition at line 346 of file qbytearrayview.h.

◆ comparesEqual [3/4]

bool comparesEqual ( const QByteArrayView & lhs,
const QByteArrayView & rhs )
friend

Definition at line 333 of file qbytearrayview.h.

◆ comparesEqual [4/4]

Q_CORE_EXPORT bool comparesEqual ( const QByteArrayView & lhs,
const QChar & rhs )
friend

Definition at line 6721 of file qstring.cpp.

◆ compareThreeWay [1/4]

Q_CORE_EXPORT Qt::strong_ordering compareThreeWay ( const QByteArrayView & lhs,
char16_t rhs )
friend

Definition at line 6737 of file qstring.cpp.

◆ compareThreeWay [2/4]

Qt::strong_ordering compareThreeWay ( const QByteArrayView & lhs,
const char * rhs )
friend

Definition at line 349 of file qbytearrayview.h.

◆ compareThreeWay [3/4]

Qt::strong_ordering compareThreeWay ( const QByteArrayView & lhs,
const QByteArrayView & rhs )
friend

Definition at line 339 of file qbytearrayview.h.

◆ compareThreeWay [4/4]

Q_CORE_EXPORT Qt::strong_ordering compareThreeWay ( const QByteArrayView & lhs,
const QChar & rhs )
friend

Definition at line 6726 of file qstring.cpp.


The documentation for this class was generated from the following files: