Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QLatin1StringView Class Reference

#include <qlatin1stringview.h>

+ Collaboration diagram for QLatin1StringView:

Public Types

using value_type = const char
 
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...))
 
QT_ASCII_CAST_WARN bool operator== (const char *s) const
 
QT_ASCII_CAST_WARN bool operator!= (const char *s) const
 
QT_ASCII_CAST_WARN bool operator< (const char *s) const
 
QT_ASCII_CAST_WARN bool operator> (const char *s) const
 
QT_ASCII_CAST_WARN bool operator<= (const char *s) const
 
QT_ASCII_CAST_WARN bool operator>= (const char *s) const
 
QT_ASCII_CAST_WARN bool operator== (const QByteArray &s) const
 
QT_ASCII_CAST_WARN bool operator!= (const QByteArray &s) const
 
QT_ASCII_CAST_WARN bool operator< (const QByteArray &s) const
 
QT_ASCII_CAST_WARN bool operator> (const QByteArray &s) const
 
QT_ASCII_CAST_WARN bool operator<= (const QByteArray &s) const
 
QT_ASCII_CAST_WARN bool operator>= (const QByteArray &s) const
 
template<typename... Args>
Q_ALWAYS_INLINE QString arg (Args &&...args) const
 

Friends

bool operator== (QLatin1StringView s1, QLatin1StringView s2) noexcept
 
bool operator!= (QLatin1StringView s1, QLatin1StringView s2) noexcept
 
bool operator< (QLatin1StringView s1, QLatin1StringView s2) noexcept
 
bool operator> (QLatin1StringView s1, QLatin1StringView s2) noexcept
 
bool operator<= (QLatin1StringView s1, QLatin1StringView s2) noexcept
 
bool operator>= (QLatin1StringView s1, QLatin1StringView s2) noexcept
 
bool operator== (QChar lhs, QLatin1StringView rhs) noexcept
 
bool operator< (QChar lhs, QLatin1StringView rhs) noexcept
 
bool operator> (QChar lhs, QLatin1StringView rhs) noexcept
 
bool operator!= (QChar lhs, QLatin1StringView rhs) noexcept
 
bool operator<= (QChar lhs, QLatin1StringView rhs) noexcept
 
bool operator>= (QChar lhs, QLatin1StringView rhs) noexcept
 
bool operator== (QLatin1StringView lhs, QChar rhs) noexcept
 
bool operator!= (QLatin1StringView lhs, QChar rhs) noexcept
 
bool operator< (QLatin1StringView lhs, QChar rhs) noexcept
 
bool operator> (QLatin1StringView lhs, QChar rhs) noexcept
 
bool operator<= (QLatin1StringView lhs, QChar rhs) noexcept
 
bool operator>= (QLatin1StringView lhs, QChar rhs) noexcept
 
bool operator== (QStringView lhs, QLatin1StringView rhs) noexcept
 
bool operator!= (QStringView lhs, QLatin1StringView rhs) noexcept
 
bool operator< (QStringView lhs, QLatin1StringView rhs) noexcept
 
bool operator<= (QStringView lhs, QLatin1StringView rhs) noexcept
 
bool operator> (QStringView lhs, QLatin1StringView rhs) noexcept
 
bool operator>= (QStringView lhs, QLatin1StringView rhs) noexcept
 
bool operator== (QLatin1StringView lhs, QStringView rhs) noexcept
 
bool operator!= (QLatin1StringView lhs, QStringView rhs) noexcept
 
bool operator< (QLatin1StringView lhs, QStringView rhs) noexcept
 
bool operator<= (QLatin1StringView lhs, QStringView rhs) noexcept
 
bool operator> (QLatin1StringView lhs, QStringView rhs) noexcept
 
bool operator>= (QLatin1StringView lhs, QStringView rhs) noexcept
 
QT_ASCII_CAST_WARN friend bool operator== (const char *s1, QLatin1StringView s2)
 
QT_ASCII_CAST_WARN friend bool operator!= (const char *s1, QLatin1StringView s2)
 
QT_ASCII_CAST_WARN friend bool operator< (const char *s1, QLatin1StringView s2)
 
QT_ASCII_CAST_WARN friend bool operator> (const char *s1, QLatin1StringView s2)
 
QT_ASCII_CAST_WARN friend bool operator<= (const char *s1, QLatin1StringView s2)
 
QT_ASCII_CAST_WARN friend bool operator>= (const char *s1, QLatin1StringView s2)
 

Detailed Description

Definition at line 27 of file qlatin1stringview.h.

Member Typedef Documentation

◆ const_iterator

◆ const_reference

◆ const_reverse_iterator

◆ difference_type

◆ iterator

Definition at line 187 of file qlatin1stringview.h.

◆ reference

Definition at line 185 of file qlatin1stringview.h.

◆ reverse_iterator

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

Definition at line 197 of file qlatin1stringview.h.

◆ size_type

Definition at line 190 of file qlatin1stringview.h.

◆ value_type

using QLatin1StringView::value_type = const char

Definition at line 184 of file qlatin1stringview.h.

Constructor & Destructor Documentation

◆ QLatin1StringView() [1/7]

constexpr QLatin1StringView::QLatin1StringView ( )
inlineconstexprnoexcept

Definition at line 34 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 35 of file qlatin1stringview.h.

◆ QLatin1StringView() [3/7]

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

Definition at line 36 of file qlatin1stringview.h.

◆ QLatin1StringView() [4/7]

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

Definition at line 38 of file qlatin1stringview.h.

◆ QLatin1StringView() [5/7]

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

Definition at line 40 of file qlatin1stringview.h.

◆ QLatin1StringView() [6/7]

QLatin1StringView::QLatin1StringView ( const QByteArray s)
inlineexplicitnoexcept

Definition at line 41 of file qlatin1stringview.h.

◆ QLatin1StringView() [7/7]

constexpr QLatin1StringView::QLatin1StringView ( QByteArrayView  s)
inlineexplicitconstexprnoexcept

Definition at line 43 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 1455 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 80 of file qlatin1stringview.h.

References i, Q_ASSERT, and size().

Referenced by QSSGQmlUtilities::expandComponents(), and typeNameToXml().

+ 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 89 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 192 of file qlatin1stringview.h.

References data().

Referenced by constBegin(), crend(), QLatin1StringMatcher::indexIn(), QMetaMethodInvoker::invokeImpl(), 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 193 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 195 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 236 of file qlatin1stringview.h.

Referenced by make_where_clause().

+ Here is the caller graph for this function:

◆ chopped()

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

Definition at line 233 of file qlatin1stringview.h.

References size().

+ Here is the call graph for this function:

◆ compare() [1/5]

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

Definition at line 96 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 98 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 93 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 91 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 994 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 64 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 63 of file qlatin1stringview.h.

References data().

Referenced by QNativeSocketEngine::initialize(), and QAbstractSocketPrivate::initSocketLayer().

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

◆ constEnd()

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

Definition at line 65 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 130 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 128 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 126 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 150 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 148 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 146 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 201 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 203 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 62 of file qlatin1stringview.h.

Referenced by QString::QString(), begin(), cbegin(), cend(), constData(), QmlLsp::QmlLintSuggestions::diagnose(), end(), and isNull().

+ Here is the caller graph for this function:

◆ empty()

constexpr bool QLatin1StringView::empty ( ) const
inlineconstexprnoexcept

Definition at line 75 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 194 of file qlatin1stringview.h.

References data(), and size().

Referenced by constEnd(), crbegin(), QMetaMethodInvoker::invokeImpl(), 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 114 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 116 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 112 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 110 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 67 of file qlatin1stringview.h.

References front().

Referenced by QSvgPaintEngine::saveGradientStops().

+ 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 229 of file qlatin1stringview.h.

◆ front()

constexpr QLatin1Char QLatin1StringView::front ( ) const
inlineconstexpr

Definition at line 88 of file qlatin1stringview.h.

References at.

Referenced by compare(), first(), QString::replace(), QString::replace(), 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 123 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 121 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 119 of file qlatin1stringview.h.

References QtPrivate::findString().

Referenced by contains(), contains(), contains(), and QLoggingRule::pass().

+ 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 73 of file qlatin1stringview.h.

References size().

Referenced by compare(), QQmlJS::Dom::ErrorMessage::dump(), endsWith(), DocumentFile::isFile(), AVFMediaEncoder::isLocationWritable(), QWindowsMediaEncoder::isLocationWritable(), 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 72 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 68 of file qlatin1stringview.h.

References back().

+ Here is the call graph for this function:

◆ last() [2/2]

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

Definition at line 231 of file qlatin1stringview.h.

References size().

+ 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 143 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 141 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 139 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 137 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 135 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 133 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 60 of file qlatin1stringview.h.

Referenced by QTapTestLogger::addIncident().

+ Here is the caller graph for this function:

◆ left()

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

Definition at line 212 of file qlatin1stringview.h.

References size().

+ Here is the call graph for this function:

◆ length()

constexpr qsizetype QLatin1StringView::length ( ) const
inlineconstexprnoexcept

Definition at line 70 of file qlatin1stringview.h.

References size().

Referenced by QWasmLocalStorageSettingsPrivate::QWasmLocalStorageSettingsPrivate(), 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 205 of file qlatin1stringview.h.

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

+ Here is the call graph for this function:

◆ operator!=() [1/2]

QT_ASCII_CAST_WARN bool QLatin1StringView::operator!= ( const char *  s) const
inline

Definition at line 1241 of file qstring.h.

References QString::fromUtf8().

+ Here is the call graph for this function:

◆ operator!=() [2/2]

QT_ASCII_CAST_WARN bool QLatin1StringView::operator!= ( const QByteArray s) const
inline

Definition at line 1254 of file qstring.h.

References QString::fromUtf8().

+ Here is the call graph for this function:

◆ operator<() [1/2]

QT_ASCII_CAST_WARN bool QLatin1StringView::operator< ( const char *  s) const
inline

Definition at line 1243 of file qstring.h.

References QString::fromUtf8().

+ Here is the call graph for this function:

◆ operator<() [2/2]

QT_ASCII_CAST_WARN bool QLatin1StringView::operator< ( const QByteArray s) const
inline

Definition at line 1256 of file qstring.h.

References QString::fromUtf8().

+ Here is the call graph for this function:

◆ operator<=() [1/2]

QT_ASCII_CAST_WARN bool QLatin1StringView::operator<= ( const char *  s) const
inline

Definition at line 1247 of file qstring.h.

References QString::fromUtf8().

+ Here is the call graph for this function:

◆ operator<=() [2/2]

QT_ASCII_CAST_WARN bool QLatin1StringView::operator<= ( const QByteArray s) const
inline

Definition at line 1260 of file qstring.h.

References QString::fromUtf8().

+ Here is the call graph for this function:

◆ operator==() [1/2]

QT_ASCII_CAST_WARN bool QLatin1StringView::operator== ( const char *  s) const
inline

Definition at line 1239 of file qstring.h.

References QString::fromUtf8().

+ Here is the call graph for this function:

◆ operator==() [2/2]

QT_ASCII_CAST_WARN bool QLatin1StringView::operator== ( const QByteArray s) const
inline

Definition at line 1252 of file qstring.h.

References QString::fromUtf8().

+ Here is the call graph for this function:

◆ operator>() [1/2]

QT_ASCII_CAST_WARN bool QLatin1StringView::operator> ( const char *  s) const
inline

Definition at line 1245 of file qstring.h.

References QString::fromUtf8().

+ Here is the call graph for this function:

◆ operator>() [2/2]

QT_ASCII_CAST_WARN bool QLatin1StringView::operator> ( const QByteArray s) const
inline

Definition at line 1258 of file qstring.h.

References QString::fromUtf8().

+ Here is the call graph for this function:

◆ operator>=() [1/2]

QT_ASCII_CAST_WARN bool QLatin1StringView::operator>= ( const char *  s) const
inline

Definition at line 1249 of file qstring.h.

References QString::fromUtf8().

+ Here is the call graph for this function:

◆ operator>=() [2/2]

QT_ASCII_CAST_WARN bool QLatin1StringView::operator>= ( const QByteArray s) const
inline

Definition at line 1262 of file qstring.h.

References QString::fromUtf8().

+ Here is the call graph for this function:

◆ operator[]()

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

Definition at line 86 of file qlatin1stringview.h.

References at, and i.

◆ rbegin()

const_reverse_iterator QLatin1StringView::rbegin ( ) const
inlinenoexcept

Definition at line 200 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 202 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 218 of file qlatin1stringview.h.

References size().

+ Here is the call graph for this function:

◆ size()

◆ sliced() [1/2]

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

Definition at line 225 of file qlatin1stringview.h.

References pos.

Referenced by QLatin1StringMatcher::indexIn().

+ Here is the caller graph for this function:

◆ sliced() [2/2]

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

Definition at line 227 of file qlatin1stringview.h.

References pos.

◆ startsWith() [1/4]

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

Definition at line 105 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 107 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 103 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 101 of file qlatin1stringview.h.

References QtPrivate::startsWith().

Referenced by QLatin1StringMatcher::indexIn(), 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 176 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 169 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 157 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 244 of file qlatin1stringview.h.

References qTokenize().

Referenced by QZoneData::ids().

+ 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 161 of file qlatin1stringview.h.

References base, and ok.

◆ toLongLong()

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

Definition at line 165 of file qlatin1stringview.h.

References base, and ok.

◆ toShort()

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

Definition at line 153 of file qlatin1stringview.h.

References base, and ok.

◆ toString()

QString QLatin1StringView::toString ( ) const
inline

Definition at line 1001 of file qstring.h.

Referenced by QQmlImportInstance::resolveType(), 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 159 of file qlatin1stringview.h.

References base, and ok.

◆ toULong()

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

Definition at line 163 of file qlatin1stringview.h.

References base, and ok.

◆ toULongLong()

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

Definition at line 167 of file qlatin1stringview.h.

References base, and ok.

◆ toUShort()

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

Definition at line 155 of file qlatin1stringview.h.

References base, and ok.

◆ trimmed()

QLatin1StringView QLatin1StringView::trimmed ( ) const
inlinenoexcept

Definition at line 241 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 238 of file qlatin1stringview.h.

Friends And Related Symbol Documentation

◆ operator!= [1/6]

QT_ASCII_CAST_WARN friend bool operator!= ( const char *  s1,
QLatin1StringView  s2 
)
friend

Definition at line 316 of file qlatin1stringview.h.

◆ operator!= [2/6]

bool operator!= ( QChar  lhs,
QLatin1StringView  rhs 
)
friend

Definition at line 271 of file qlatin1stringview.h.

◆ operator!= [3/6]

bool operator!= ( QLatin1StringView  lhs,
QChar  rhs 
)
friend

Definition at line 276 of file qlatin1stringview.h.

◆ operator!= [4/6]

bool operator!= ( QLatin1StringView  lhs,
QStringView  rhs 
)
friend

Definition at line 293 of file qlatin1stringview.h.

◆ operator!= [5/6]

bool operator!= ( QLatin1StringView  s1,
QLatin1StringView  s2 
)
friend

Definition at line 252 of file qlatin1stringview.h.

◆ operator!= [6/6]

bool operator!= ( QStringView  lhs,
QLatin1StringView  rhs 
)
friend

Definition at line 285 of file qlatin1stringview.h.

◆ operator< [1/6]

QT_ASCII_CAST_WARN friend bool operator< ( const char *  s1,
QLatin1StringView  s2 
)
friend

Definition at line 317 of file qlatin1stringview.h.

◆ operator< [2/6]

bool operator< ( QChar  lhs,
QLatin1StringView  rhs 
)
friend

Definition at line 269 of file qlatin1stringview.h.

◆ operator< [3/6]

bool operator< ( QLatin1StringView  lhs,
QChar  rhs 
)
friend

Definition at line 277 of file qlatin1stringview.h.

◆ operator< [4/6]

bool operator< ( QLatin1StringView  lhs,
QStringView  rhs 
)
friend

Definition at line 294 of file qlatin1stringview.h.

◆ operator< [5/6]

bool operator< ( QLatin1StringView  s1,
QLatin1StringView  s2 
)
friend

Definition at line 254 of file qlatin1stringview.h.

◆ operator< [6/6]

bool operator< ( QStringView  lhs,
QLatin1StringView  rhs 
)
friend

Definition at line 286 of file qlatin1stringview.h.

◆ operator<= [1/6]

QT_ASCII_CAST_WARN friend bool operator<= ( const char *  s1,
QLatin1StringView  s2 
)
friend

Definition at line 319 of file qlatin1stringview.h.

◆ operator<= [2/6]

bool operator<= ( QChar  lhs,
QLatin1StringView  rhs 
)
friend

Definition at line 272 of file qlatin1stringview.h.

◆ operator<= [3/6]

bool operator<= ( QLatin1StringView  lhs,
QChar  rhs 
)
friend

Definition at line 279 of file qlatin1stringview.h.

◆ operator<= [4/6]

bool operator<= ( QLatin1StringView  lhs,
QStringView  rhs 
)
friend

Definition at line 295 of file qlatin1stringview.h.

◆ operator<= [5/6]

bool operator<= ( QLatin1StringView  s1,
QLatin1StringView  s2 
)
friend

Definition at line 262 of file qlatin1stringview.h.

◆ operator<= [6/6]

bool operator<= ( QStringView  lhs,
QLatin1StringView  rhs 
)
friend

Definition at line 287 of file qlatin1stringview.h.

◆ operator== [1/6]

QT_ASCII_CAST_WARN friend bool operator== ( const char *  s1,
QLatin1StringView  s2 
)
friend

Definition at line 315 of file qlatin1stringview.h.

◆ operator== [2/6]

bool operator== ( QChar  lhs,
QLatin1StringView  rhs 
)
friend

Definition at line 268 of file qlatin1stringview.h.

◆ operator== [3/6]

bool operator== ( QLatin1StringView  lhs,
QChar  rhs 
)
friend

Definition at line 275 of file qlatin1stringview.h.

◆ operator== [4/6]

bool operator== ( QLatin1StringView  lhs,
QStringView  rhs 
)
friend

Definition at line 291 of file qlatin1stringview.h.

◆ operator== [5/6]

bool operator== ( QLatin1StringView  s1,
QLatin1StringView  s2 
)
friend

Definition at line 250 of file qlatin1stringview.h.

◆ operator== [6/6]

bool operator== ( QStringView  lhs,
QLatin1StringView  rhs 
)
friend

Definition at line 283 of file qlatin1stringview.h.

◆ operator> [1/6]

QT_ASCII_CAST_WARN friend bool operator> ( const char *  s1,
QLatin1StringView  s2 
)
friend

Definition at line 318 of file qlatin1stringview.h.

◆ operator> [2/6]

bool operator> ( QChar  lhs,
QLatin1StringView  rhs 
)
friend

Definition at line 270 of file qlatin1stringview.h.

◆ operator> [3/6]

bool operator> ( QLatin1StringView  lhs,
QChar  rhs 
)
friend

Definition at line 278 of file qlatin1stringview.h.

◆ operator> [4/6]

bool operator> ( QLatin1StringView  lhs,
QStringView  rhs 
)
friend

Definition at line 296 of file qlatin1stringview.h.

◆ operator> [5/6]

bool operator> ( QLatin1StringView  s1,
QLatin1StringView  s2 
)
friend

Definition at line 260 of file qlatin1stringview.h.

◆ operator> [6/6]

bool operator> ( QStringView  lhs,
QLatin1StringView  rhs 
)
friend

Definition at line 288 of file qlatin1stringview.h.

◆ operator>= [1/6]

QT_ASCII_CAST_WARN friend bool operator>= ( const char *  s1,
QLatin1StringView  s2 
)
friend

Definition at line 320 of file qlatin1stringview.h.

◆ operator>= [2/6]

bool operator>= ( QChar  lhs,
QLatin1StringView  rhs 
)
friend

Definition at line 273 of file qlatin1stringview.h.

◆ operator>= [3/6]

bool operator>= ( QLatin1StringView  lhs,
QChar  rhs 
)
friend

Definition at line 280 of file qlatin1stringview.h.

◆ operator>= [4/6]

bool operator>= ( QLatin1StringView  lhs,
QStringView  rhs 
)
friend

Definition at line 297 of file qlatin1stringview.h.

◆ operator>= [5/6]

bool operator>= ( QLatin1StringView  s1,
QLatin1StringView  s2 
)
friend

Definition at line 264 of file qlatin1stringview.h.

◆ operator>= [6/6]

bool operator>= ( QStringView  lhs,
QLatin1StringView  rhs 
)
friend

Definition at line 289 of file qlatin1stringview.h.


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