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
QLatin1StringView Class Reference

#include <qlatin1stringview.h>

+ Collaboration diagram for QLatin1StringView:

Public Types

using value_type = const char
 
using pointer = value_type*
 
using const_pointer = pointer
 
using reference = value_type&
 
using const_reference = reference
 
using iterator = value_type*
 
using const_iterator = iterator
 
using difference_type = qsizetype
 
using size_type = qsizetype
 
using reverse_iterator = std::reverse_iterator<iterator>
 
using const_reverse_iterator = reverse_iterator
 

Public Member Functions

constexpr QLatin1StringView () noexcept
 
constexpr QLatin1StringView (std::nullptr_t) noexcept
 
constexpr QLatin1StringView (const char *s) noexcept
 
constexpr QLatin1StringView (const char *f, const char *l)
 
constexpr QLatin1StringView (const char *s, qsizetype sz) noexcept
 
 QLatin1StringView (const QByteArray &s) noexcept
 
constexpr QLatin1StringView (QByteArrayView s) noexcept
 
QString toString () const
 
constexpr const char * latin1 () const noexcept
 
constexpr qsizetype size () const noexcept
 
constexpr const char * data () const noexcept
 
constexpr const char * constData () const noexcept
 
constexpr const char * constBegin () const noexcept
 
constexpr const char * constEnd () const noexcept
 
constexpr QLatin1Char first () const
 
constexpr QLatin1Char last () const
 
constexpr qsizetype length () const noexcept
 
constexpr bool isNull () const noexcept
 
constexpr bool isEmpty () const noexcept
 
constexpr bool empty () const noexcept
 
template<typename... Args>
QString arg (Args &&...args) const
 
constexpr QLatin1Char at (qsizetype i) const
 
constexpr QLatin1Char operator[] (qsizetype i) const
 
constexpr QLatin1Char front () const
 
constexpr QLatin1Char back () const
 
int compare (QStringView other, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
int compare (QLatin1StringView other, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
int compare (QUtf8StringView other, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
constexpr int compare (QChar c) const noexcept
 
int compare (QChar c, Qt::CaseSensitivity cs) const noexcept
 
bool startsWith (QStringView s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
bool startsWith (QLatin1StringView s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
constexpr bool startsWith (QChar c) const noexcept
 
bool startsWith (QChar c, Qt::CaseSensitivity cs) const noexcept
 
bool endsWith (QStringView s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
bool endsWith (QLatin1StringView s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
constexpr bool endsWith (QChar c) const noexcept
 
bool endsWith (QChar c, Qt::CaseSensitivity cs) const noexcept
 
qsizetype indexOf (QStringView s, qsizetype from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
qsizetype indexOf (QLatin1StringView s, qsizetype from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
qsizetype indexOf (QChar c, qsizetype from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
bool contains (QStringView s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
bool contains (QLatin1StringView s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
bool contains (QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
qsizetype lastIndexOf (QStringView s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
qsizetype lastIndexOf (QStringView s, qsizetype from, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
qsizetype lastIndexOf (QLatin1StringView s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
qsizetype lastIndexOf (QLatin1StringView s, qsizetype from, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
qsizetype lastIndexOf (QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
qsizetype lastIndexOf (QChar c, qsizetype from, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
qsizetype count (QStringView str, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
 
qsizetype count (QLatin1StringView str, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
 
qsizetype count (QChar ch, Qt::CaseSensitivity cs=Qt::CaseSensitive) 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
 
constexpr const_iterator begin () const noexcept
 
constexpr const_iterator cbegin () const noexcept
 
constexpr const_iterator end () const noexcept
 
constexpr const_iterator cend () const noexcept
 
const_reverse_iterator rbegin () const noexcept
 
const_reverse_iterator crbegin () const noexcept
 
const_reverse_iterator rend () const noexcept
 
const_reverse_iterator crend () const noexcept
 
constexpr QLatin1StringView mid (qsizetype pos, qsizetype n=-1) const
 
constexpr QLatin1StringView left (qsizetype n) const
 
constexpr QLatin1StringView right (qsizetype n) const
 
constexpr QLatin1StringView sliced (qsizetype pos) const
 
constexpr QLatin1StringView sliced (qsizetype pos, qsizetype n) const
 
constexpr QLatin1StringView first (qsizetype n) const
 
constexpr QLatin1StringView last (qsizetype n) const
 
constexpr QLatin1StringView chopped (qsizetype n) const
 
constexpr void chop (qsizetype n)
 
constexpr void truncate (qsizetype n)
 
QLatin1StringView trimmed () const noexcept
 
template<typename Needle , typename... Flags>
constexpr auto tokenize (Needle &&needle, Flags...flags) const noexcept(noexcept(qTokenize(std::declval< const QLatin1StringView & >(), std::forward< Needle >(needle), flags...))) -> decltype(qTokenize(*this, std::forward< Needle >(needle), flags...))
 
template<typename... Args>
Q_ALWAYS_INLINE QString arg (Args &&...args) const
 

Friends

bool comparesEqual (const QLatin1StringView &s1, const QLatin1StringView &s2) noexcept
 
Qt::strong_ordering compareThreeWay (const QLatin1StringView &s1, const QLatin1StringView &s2) noexcept
 
bool comparesEqual (const QLatin1StringView &lhs, QChar rhs) noexcept
 
Qt::strong_ordering compareThreeWay (const QLatin1StringView &lhs, QChar rhs) noexcept
 
bool comparesEqual (const QLatin1StringView &lhs, const QStringView &rhs) noexcept
 
Qt::strong_ordering compareThreeWay (const QLatin1StringView &lhs, const QStringView &rhs) noexcept
 
bool comparesEqual (const QStringView &lhs, const QLatin1StringView &rhs) noexcept
 
Qt::strong_ordering compareThreeWay (const QStringView &lhs, const QLatin1StringView &rhs) noexcept
 
bool comparesEqual (const QLatin1StringView &lhs, const QByteArrayView &rhs) noexcept
 
Qt::strong_ordering compareThreeWay (const QLatin1StringView &lhs, const QByteArrayView &rhs) noexcept
 
bool comparesEqual (const QByteArrayView &lhs, const QLatin1StringView &rhs) noexcept
 
Qt::strong_ordering compareThreeWay (const QByteArrayView &lhs, const QLatin1StringView &rhs) noexcept
 

Detailed Description

Definition at line 28 of file qlatin1stringview.h.

Member Typedef Documentation

◆ const_iterator

◆ const_pointer

Definition at line 187 of file qlatin1stringview.h.

◆ const_reference

◆ const_reverse_iterator

◆ difference_type

◆ iterator

Definition at line 190 of file qlatin1stringview.h.

◆ pointer

Definition at line 186 of file qlatin1stringview.h.

◆ reference

Definition at line 188 of file qlatin1stringview.h.

◆ reverse_iterator

using QLatin1StringView::reverse_iterator = std::reverse_iterator<iterator>

Definition at line 200 of file qlatin1stringview.h.

◆ size_type

Definition at line 193 of file qlatin1stringview.h.

◆ value_type

using QLatin1StringView::value_type = const char

Definition at line 185 of file qlatin1stringview.h.

Constructor & Destructor Documentation

◆ QLatin1StringView() [1/7]

constexpr QLatin1StringView::QLatin1StringView ( )
inlineconstexprnoexcept

Definition at line 35 of file qlatin1stringview.h.

Referenced by mid(), and qDBusParametersForMethod().

+ Here is the caller graph for this function:

◆ QLatin1StringView() [2/7]

constexpr QLatin1StringView::QLatin1StringView ( std::nullptr_t )
inlineconstexprnoexcept

Definition at line 36 of file qlatin1stringview.h.

◆ QLatin1StringView() [3/7]

constexpr QLatin1StringView::QLatin1StringView ( const char * s)
inlineexplicitconstexprnoexcept

Definition at line 37 of file qlatin1stringview.h.

◆ QLatin1StringView() [4/7]

constexpr QLatin1StringView::QLatin1StringView ( const char * f,
const char * l )
inlineconstexpr

Definition at line 39 of file qlatin1stringview.h.

◆ QLatin1StringView() [5/7]

constexpr QLatin1StringView::QLatin1StringView ( const char * s,
qsizetype sz )
inlineconstexprnoexcept

Definition at line 41 of file qlatin1stringview.h.

◆ QLatin1StringView() [6/7]

QLatin1StringView::QLatin1StringView ( const QByteArray & s)
inlineexplicitnoexcept

Definition at line 42 of file qlatin1stringview.h.

◆ QLatin1StringView() [7/7]

constexpr QLatin1StringView::QLatin1StringView ( QByteArrayView s)
inlineexplicitconstexprnoexcept

Definition at line 44 of file qlatin1stringview.h.

Member Function Documentation

◆ arg() [1/2]

◆ arg() [2/2]

template<typename... Args>
Q_ALWAYS_INLINE QString QLatin1StringView::arg ( Args &&... args) const

Definition at line 1595 of file qstring.h.

References args, QtPrivate::argToQStringDispatch(), and QtPrivate::qStringLikeToArg().

+ Here is the call graph for this function:

◆ at()

constexpr QLatin1Char QLatin1StringView::at ( qsizetype i) const
inlineconstexpr

Definition at line 81 of file qlatin1stringview.h.

References i, Q_ASSERT, and size().

Referenced by QSSGQmlUtilities::expandComponents(), and QHttpHeaders::nameAt().

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

◆ back()

constexpr QLatin1Char QLatin1StringView::back ( ) const
inlineconstexpr

Definition at line 90 of file qlatin1stringview.h.

References at, and size().

Referenced by endsWith(), and last().

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

◆ begin()

constexpr const_iterator QLatin1StringView::begin ( ) const
inlineconstexprnoexcept

Definition at line 195 of file qlatin1stringview.h.

References data().

Referenced by constBegin(), crend(), QLatin1StringMatcher::indexIn(), QStaticLatin1StringMatcher< CS, N >::indexIn(), and rend().

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

◆ cbegin()

constexpr const_iterator QLatin1StringView::cbegin ( ) const
inlineconstexprnoexcept

Definition at line 196 of file qlatin1stringview.h.

References data().

+ Here is the call graph for this function:

◆ cend()

constexpr const_iterator QLatin1StringView::cend ( ) const
inlineconstexprnoexcept

Definition at line 198 of file qlatin1stringview.h.

References data(), and size().

+ Here is the call graph for this function:

◆ chop()

constexpr void QLatin1StringView::chop ( qsizetype n)
inlineconstexpr

Definition at line 239 of file qlatin1stringview.h.

Referenced by QCommandLineParserPrivate::helpText(), and make_where_clause().

+ Here is the caller graph for this function:

◆ chopped()

constexpr QLatin1StringView QLatin1StringView::chopped ( qsizetype n) const
inlineconstexpr

Definition at line 236 of file qlatin1stringview.h.

References size(), and sliced().

+ Here is the call graph for this function:

◆ compare() [1/5]

constexpr int QLatin1StringView::compare ( QChar c) const
inlineconstexprnoexcept

Definition at line 97 of file qlatin1stringview.h.

References front(), isEmpty(), and size().

+ Here is the call graph for this function:

◆ compare() [2/5]

int QLatin1StringView::compare ( QChar c,
Qt::CaseSensitivity cs ) const
inlinenoexcept

Definition at line 99 of file qlatin1stringview.h.

References QtPrivate::compareStrings().

+ Here is the call graph for this function:

◆ compare() [3/5]

int QLatin1StringView::compare ( QLatin1StringView other,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 94 of file qlatin1stringview.h.

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

+ Here is the call graph for this function:

◆ compare() [4/5]

int QLatin1StringView::compare ( QStringView other,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 92 of file qlatin1stringview.h.

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

Referenced by QtPrivate::findString().

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

◆ compare() [5/5]

int QLatin1StringView::compare ( QUtf8StringView other,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 1101 of file qstring.h.

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

+ Here is the call graph for this function:

◆ constBegin()

constexpr const char * QLatin1StringView::constBegin ( ) const
inlineconstexprnoexcept

Definition at line 65 of file qlatin1stringview.h.

References begin().

+ Here is the call graph for this function:

◆ constData()

constexpr const char * QLatin1StringView::constData ( ) const
inlineconstexprnoexcept

Definition at line 64 of file qlatin1stringview.h.

References data().

+ Here is the call graph for this function:

◆ constEnd()

constexpr const char * QLatin1StringView::constEnd ( ) const
inlineconstexprnoexcept

Definition at line 66 of file qlatin1stringview.h.

References end().

+ Here is the call graph for this function:

◆ contains() [1/3]

bool QLatin1StringView::contains ( QChar c,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 131 of file qlatin1stringview.h.

References indexOf().

+ Here is the call graph for this function:

◆ contains() [2/3]

bool QLatin1StringView::contains ( QLatin1StringView s,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 129 of file qlatin1stringview.h.

References indexOf().

+ Here is the call graph for this function:

◆ contains() [3/3]

bool QLatin1StringView::contains ( QStringView s,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 127 of file qlatin1stringview.h.

References indexOf().

Referenced by QTlsPrivate::cryptoSettingsForCiphers(), QAnyStringViewUtils::doesContain(), and QTest::qPrintTestSlots().

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

◆ count() [1/3]

qsizetype QLatin1StringView::count ( QChar ch,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 151 of file qlatin1stringview.h.

References ch, and QtPrivate::count().

+ Here is the call graph for this function:

◆ count() [2/3]

qsizetype QLatin1StringView::count ( QLatin1StringView str,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inline

Definition at line 149 of file qlatin1stringview.h.

References QtPrivate::count(), and str.

+ Here is the call graph for this function:

◆ count() [3/3]

qsizetype QLatin1StringView::count ( QStringView str,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inline

Definition at line 147 of file qlatin1stringview.h.

References QtPrivate::count(), and str.

+ Here is the call graph for this function:

◆ crbegin()

const_reverse_iterator QLatin1StringView::crbegin ( ) const
inlinenoexcept

Definition at line 204 of file qlatin1stringview.h.

References end().

+ Here is the call graph for this function:

◆ crend()

const_reverse_iterator QLatin1StringView::crend ( ) const
inlinenoexcept

Definition at line 206 of file qlatin1stringview.h.

References begin().

+ Here is the call graph for this function:

◆ data()

constexpr const char * QLatin1StringView::data ( ) const
inlineconstexprnoexcept

Definition at line 63 of file qlatin1stringview.h.

Referenced by QString::QString(), QT_BEGIN_NAMESPACE::addTagsFromExtendedComment(), begin(), cbegin(), cend(), constData(), end(), and isNull().

+ Here is the caller graph for this function:

◆ empty()

constexpr bool QLatin1StringView::empty ( ) const
inlineconstexprnoexcept

Definition at line 76 of file qlatin1stringview.h.

References size().

+ Here is the call graph for this function:

◆ end()

constexpr const_iterator QLatin1StringView::end ( ) const
inlineconstexprnoexcept

Definition at line 197 of file qlatin1stringview.h.

References data(), and size().

Referenced by constEnd(), crbegin(), QStaticLatin1StringMatcher< CS, N >::indexIn(), and rbegin().

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

◆ endsWith() [1/4]

constexpr bool QLatin1StringView::endsWith ( QChar c) const
inlineconstexprnoexcept

Definition at line 115 of file qlatin1stringview.h.

References back(), and isEmpty().

+ Here is the call graph for this function:

◆ endsWith() [2/4]

bool QLatin1StringView::endsWith ( QChar c,
Qt::CaseSensitivity cs ) const
inlinenoexcept

Definition at line 117 of file qlatin1stringview.h.

References QtPrivate::endsWith().

+ Here is the call graph for this function:

◆ endsWith() [3/4]

bool QLatin1StringView::endsWith ( QLatin1StringView s,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 113 of file qlatin1stringview.h.

References QtPrivate::endsWith().

+ Here is the call graph for this function:

◆ endsWith() [4/4]

bool QLatin1StringView::endsWith ( QStringView s,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 111 of file qlatin1stringview.h.

References QtPrivate::endsWith().

Referenced by qDecodeDataUrl().

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

◆ first() [1/2]

constexpr QLatin1Char QLatin1StringView::first ( ) const
inlineconstexpr

Definition at line 68 of file qlatin1stringview.h.

References front().

Referenced by QT_BEGIN_NAMESPACE::addTagsFromExtendedComment(), QSvgPaintEngine::saveGradientStops(), and QAsn1Element::toDateTime().

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

◆ first() [2/2]

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

Definition at line 232 of file qlatin1stringview.h.

References sliced().

+ Here is the call graph for this function:

◆ front()

constexpr QLatin1Char QLatin1StringView::front ( ) const
inlineconstexpr

Definition at line 89 of file qlatin1stringview.h.

References at.

Referenced by compare(), first(), QString::replace(), QString::replace(), and startsWith().

+ Here is the caller graph for this function:

◆ indexOf() [1/3]

qsizetype QLatin1StringView::indexOf ( QChar c,
qsizetype from = 0,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 124 of file qlatin1stringview.h.

References QtPrivate::findString().

+ Here is the call graph for this function:

◆ indexOf() [2/3]

qsizetype QLatin1StringView::indexOf ( QLatin1StringView s,
qsizetype from = 0,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 122 of file qlatin1stringview.h.

References QtPrivate::findString().

+ Here is the call graph for this function:

◆ indexOf() [3/3]

qsizetype QLatin1StringView::indexOf ( QStringView s,
qsizetype from = 0,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 120 of file qlatin1stringview.h.

References QtPrivate::findString().

Referenced by QT_BEGIN_NAMESPACE::addTagsFromExtendedComment(), contains(), contains(), and contains().

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

◆ isEmpty()

constexpr bool QLatin1StringView::isEmpty ( ) const
inlineconstexprnoexcept

Definition at line 74 of file qlatin1stringview.h.

References size().

Referenced by compare(), QQmlJS::Dom::ErrorMessage::dump(), endsWith(), DocumentFile::isFile(), AVFMediaEncoder::isLocationWritable(), QWindowsMediaEncoder::isLocationWritable(), QQuickJSContext2DPrototype::method_createPattern(), parse_content_type(), QQuickPackage::part(), qDBusInterfaceFromMetaObject(), and startsWith().

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

◆ isNull()

constexpr bool QLatin1StringView::isNull ( ) const
inlineconstexprnoexcept

Definition at line 73 of file qlatin1stringview.h.

References data().

+ Here is the call graph for this function:

◆ last() [1/2]

constexpr QLatin1Char QLatin1StringView::last ( ) const
inlineconstexpr

Definition at line 69 of file qlatin1stringview.h.

References back().

Referenced by QT_BEGIN_NAMESPACE::addTagsFromExtendedComment().

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

◆ last() [2/2]

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

Definition at line 234 of file qlatin1stringview.h.

References size(), and sliced().

+ Here is the call graph for this function:

◆ lastIndexOf() [1/6]

qsizetype QLatin1StringView::lastIndexOf ( QChar c,
qsizetype from,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 144 of file qlatin1stringview.h.

References QtPrivate::lastIndexOf().

+ Here is the call graph for this function:

◆ lastIndexOf() [2/6]

qsizetype QLatin1StringView::lastIndexOf ( QChar c,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 142 of file qlatin1stringview.h.

References lastIndexOf().

+ Here is the call graph for this function:

◆ lastIndexOf() [3/6]

qsizetype QLatin1StringView::lastIndexOf ( QLatin1StringView s,
qsizetype from,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 140 of file qlatin1stringview.h.

References QtPrivate::lastIndexOf().

+ Here is the call graph for this function:

◆ lastIndexOf() [4/6]

qsizetype QLatin1StringView::lastIndexOf ( QLatin1StringView s,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 138 of file qlatin1stringview.h.

References lastIndexOf(), and size().

+ Here is the call graph for this function:

◆ lastIndexOf() [5/6]

qsizetype QLatin1StringView::lastIndexOf ( QStringView s,
qsizetype from,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 136 of file qlatin1stringview.h.

References QtPrivate::lastIndexOf().

+ Here is the call graph for this function:

◆ lastIndexOf() [6/6]

qsizetype QLatin1StringView::lastIndexOf ( QStringView s,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 134 of file qlatin1stringview.h.

References lastIndexOf(), and size().

Referenced by lastIndexOf(), lastIndexOf(), and lastIndexOf().

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

◆ latin1()

constexpr const char * QLatin1StringView::latin1 ( ) const
inlineconstexprnoexcept

Definition at line 61 of file qlatin1stringview.h.

◆ left()

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

Definition at line 215 of file qlatin1stringview.h.

References size().

+ Here is the call graph for this function:

◆ length()

constexpr qsizetype QLatin1StringView::length ( ) const
inlineconstexprnoexcept

Definition at line 71 of file qlatin1stringview.h.

References size().

Referenced by QAnyStringViewUtils::endsWith(), QAnyStringViewUtils::startsWith(), and QmlTypeRegistrar::write().

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

◆ mid()

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

Definition at line 208 of file qlatin1stringview.h.

References QLatin1StringView(), pos, and size().

Referenced by QNetworkCookiePrivate::parseSetCookieHeaderLine().

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

◆ operator[]()

constexpr QLatin1Char QLatin1StringView::operator[] ( qsizetype i) const
inlineconstexpr

Definition at line 87 of file qlatin1stringview.h.

References at, and i.

◆ rbegin()

const_reverse_iterator QLatin1StringView::rbegin ( ) const
inlinenoexcept

Definition at line 203 of file qlatin1stringview.h.

References end().

+ Here is the call graph for this function:

◆ rend()

const_reverse_iterator QLatin1StringView::rend ( ) const
inlinenoexcept

Definition at line 205 of file qlatin1stringview.h.

References begin().

+ Here is the call graph for this function:

◆ right()

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

Definition at line 221 of file qlatin1stringview.h.

References size().

+ Here is the call graph for this function:

◆ size()

constexpr qsizetype QLatin1StringView::size ( ) const
inlineconstexprnoexcept

Definition at line 62 of file qlatin1stringview.h.

Referenced by QString::QString(), at(), back(), cend(), chopped(), compare(), empty(), end(), isEmpty(), last(), lastIndexOf(), lastIndexOf(), left(), length(), make_where_clause(), QV4::QQmlXMLHttpRequestCtor::method_overrideMimeType(), mid(), mimeToType(), qDecodeDataUrl(), QString::replace(), QString::replace(), right(), and QSSGRhiShaderPipeline::setUniformArray().

+ Here is the caller graph for this function:

◆ sliced() [1/2]

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

Definition at line 228 of file qlatin1stringview.h.

References pos.

Referenced by chopped(), first(), QLatin1StringMatcher::indexIn(), last(), parse_content_type(), and QAsn1Element::toDateTime().

+ Here is the caller graph for this function:

◆ sliced() [2/2]

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

Definition at line 230 of file qlatin1stringview.h.

References pos.

◆ startsWith() [1/4]

constexpr bool QLatin1StringView::startsWith ( QChar c) const
inlineconstexprnoexcept

Definition at line 106 of file qlatin1stringview.h.

References front(), and isEmpty().

+ Here is the call graph for this function:

◆ startsWith() [2/4]

bool QLatin1StringView::startsWith ( QChar c,
Qt::CaseSensitivity cs ) const
inlinenoexcept

Definition at line 108 of file qlatin1stringview.h.

References QtPrivate::startsWith().

+ Here is the call graph for this function:

◆ startsWith() [3/4]

bool QLatin1StringView::startsWith ( QLatin1StringView s,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 104 of file qlatin1stringview.h.

References QtPrivate::startsWith().

+ Here is the call graph for this function:

◆ startsWith() [4/4]

bool QLatin1StringView::startsWith ( QStringView s,
Qt::CaseSensitivity cs = Qt::CaseSensitive ) const
inlinenoexcept

Definition at line 102 of file qlatin1stringview.h.

References QtPrivate::startsWith().

Referenced by QV4::QQmlXMLHttpRequestCtor::method_setRequestHeader(), and qDecodeDataUrl().

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

◆ toDouble()

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

Definition at line 177 of file qlatin1stringview.h.

References ok, and QtPrivate::toDouble().

+ Here is the call graph for this function:

◆ toFloat()

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

Definition at line 170 of file qlatin1stringview.h.

References ok, and QtPrivate::toFloat().

+ Here is the call graph for this function:

◆ toInt()

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

Definition at line 158 of file qlatin1stringview.h.

References base, and ok.

Referenced by QQmlPrivate::revisionClassInfo(), and QQmlPrivate::revisionClassInfos().

+ Here is the caller graph for this function:

◆ tokenize()

template<typename Needle , typename... Flags>
template< typename Needle, typename...Flags > auto QLatin1StringView::tokenize ( Needle && needle,
Flags... flags ) const -> decltype(qTokenize(*this, std::forward<Needle>(needle), flags...))
inlineconstexprnoexcept

Definition at line 247 of file qlatin1stringview.h.

References qTokenize().

Referenced by containsAuth(), QNetworkHeadersPrivate::fromRawToHttp(), QUtcTimeZonePrivate::offsetFromUtcString(), parseCookieHeader(), QNetworkCookie::parseCookies(), parseMatchImpl(), and setFromRawHeader().

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

◆ toLong()

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

Definition at line 162 of file qlatin1stringview.h.

References base, and ok.

◆ toLongLong()

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

Definition at line 166 of file qlatin1stringview.h.

References base, and ok.

◆ toShort()

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

Definition at line 154 of file qlatin1stringview.h.

References base, and ok.

◆ toString()

QString QLatin1StringView::toString ( ) const
inline

Definition at line 1108 of file qstring.h.

Referenced by QQmlJS::Dom::ErrorMessage::msg(), and QSettingsPrivate::variantToString().

+ Here is the caller graph for this function:

◆ toUInt()

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

Definition at line 160 of file qlatin1stringview.h.

References base, and ok.

◆ toULong()

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

Definition at line 164 of file qlatin1stringview.h.

References base, and ok.

◆ toULongLong()

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

Definition at line 168 of file qlatin1stringview.h.

References base, and ok.

◆ toUShort()

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

Definition at line 156 of file qlatin1stringview.h.

References base, and ok.

◆ trimmed()

QLatin1StringView QLatin1StringView::trimmed ( ) const
inlinenoexcept

Definition at line 244 of file qlatin1stringview.h.

References QtPrivate::trimmed().

Referenced by ignoreProxyFor().

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

◆ truncate()

constexpr void QLatin1StringView::truncate ( qsizetype n)
inlineconstexpr

Definition at line 241 of file qlatin1stringview.h.

Friends And Related Symbol Documentation

◆ comparesEqual [1/6]

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

Definition at line 309 of file qlatin1stringview.h.

◆ comparesEqual [2/6]

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

Definition at line 297 of file qlatin1stringview.h.

◆ comparesEqual [3/6]

bool comparesEqual ( const QLatin1StringView & lhs,
const QStringView & rhs )
friend

Definition at line 276 of file qlatin1stringview.h.

◆ comparesEqual [4/6]

bool comparesEqual ( const QLatin1StringView & lhs,
QChar rhs )
friend

Definition at line 264 of file qlatin1stringview.h.

◆ comparesEqual [5/6]

bool comparesEqual ( const QLatin1StringView & s1,
const QLatin1StringView & s2 )
friend

Definition at line 253 of file qlatin1stringview.h.

◆ comparesEqual [6/6]

bool comparesEqual ( const QStringView & lhs,
const QLatin1StringView & rhs )
friend

Definition at line 290 of file qlatin1stringview.h.

◆ compareThreeWay [1/6]

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

Definition at line 312 of file qlatin1stringview.h.

◆ compareThreeWay [2/6]

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

Definition at line 300 of file qlatin1stringview.h.

◆ compareThreeWay [3/6]

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

Definition at line 279 of file qlatin1stringview.h.

◆ compareThreeWay [4/6]

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

Definition at line 267 of file qlatin1stringview.h.

◆ compareThreeWay [5/6]

Qt::strong_ordering compareThreeWay ( const QLatin1StringView & s1,
const QLatin1StringView & s2 )
friend

Definition at line 256 of file qlatin1stringview.h.

◆ compareThreeWay [6/6]

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

Definition at line 293 of file qlatin1stringview.h.


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