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
QAnyStringViewUtils Namespace Reference

Functions

QAnyStringView toStringView (const QCborValue &value)
 
QAnyStringView toStringView (const QCborMap &map, QLatin1StringView key)
 
bool endsWith (QAnyStringView whole, QLatin1StringView part)
 
bool startsWith (QAnyStringView whole, QLatin1StringView part)
 
bool doesContain (QStringView whole, QLatin1Char part)
 
bool doesContain (QLatin1StringView whole, QLatin1Char part)
 
bool doesContain (QUtf8StringView whole, QLatin1Char part)
 
bool contains (QAnyStringView whole, QLatin1Char part)
 
qsizetype getLastIndexOf (QStringView whole, QLatin1StringView part)
 
qsizetype getLastIndexOf (QLatin1StringView whole, QLatin1StringView part)
 
qsizetype getLastIndexOf (QUtf8StringView whole, QLatin1StringView part)
 
qsizetype lastIndexOf (QAnyStringView whole, QLatin1StringView part)
 
int toInt (QUtf8StringView view)
 
int toInt (QLatin1StringView view)
 
int toInt (QStringView view)
 
int toInt (QAnyStringView string)
 
template<typename StringView >
QAnyStringView doTrimmed (StringView string)
 
QAnyStringView trimmed (QAnyStringView string)
 
template<typename StringView , typename Handler >
auto processAsUtf8 (StringView string, Handler &&handler)
 
QList< QAnyStringViewsplit (QAnyStringView source, QLatin1StringView sep)
 

Function Documentation

◆ contains()

bool QAnyStringViewUtils::contains ( QAnyStringView whole,
QLatin1Char part )
inline

Definition at line 70 of file qanystringviewutils_p.h.

References doesContain(), and view.

+ Here is the call graph for this function:

◆ doesContain() [1/3]

bool QAnyStringViewUtils::doesContain ( QLatin1StringView whole,
QLatin1Char part )
inline

Definition at line 65 of file qanystringviewutils_p.h.

◆ doesContain() [2/3]

bool QAnyStringViewUtils::doesContain ( QStringView whole,
QLatin1Char part )
inline

Definition at line 64 of file qanystringviewutils_p.h.

References QLatin1StringView::contains().

Referenced by contains().

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

◆ doesContain() [3/3]

bool QAnyStringViewUtils::doesContain ( QUtf8StringView whole,
QLatin1Char part )
inline

Definition at line 66 of file qanystringviewutils_p.h.

References QByteArrayView::contains(), and QLatin1Char::toLatin1().

+ Here is the call graph for this function:

◆ doTrimmed()

template<typename StringView >
QAnyStringView QAnyStringViewUtils::doTrimmed ( StringView string)

Definition at line 106 of file qanystringviewutils_p.h.

References trimmed().

Referenced by trimmed().

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

◆ endsWith()

bool QAnyStringViewUtils::endsWith ( QAnyStringView whole,
QLatin1StringView part )
inline

Definition at line 51 of file qanystringviewutils_p.h.

References QtPrivate::isAscii(), QLatin1StringView::length(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ getLastIndexOf() [1/3]

qsizetype QAnyStringViewUtils::getLastIndexOf ( QLatin1StringView whole,
QLatin1StringView part )
inline

Definition at line 79 of file qanystringviewutils_p.h.

◆ getLastIndexOf() [2/3]

qsizetype QAnyStringViewUtils::getLastIndexOf ( QStringView whole,
QLatin1StringView part )
inline

Definition at line 75 of file qanystringviewutils_p.h.

Referenced by lastIndexOf().

+ Here is the caller graph for this function:

◆ getLastIndexOf() [3/3]

qsizetype QAnyStringViewUtils::getLastIndexOf ( QUtf8StringView whole,
QLatin1StringView part )
inline

Definition at line 83 of file qanystringviewutils_p.h.

References QByteArrayView::lastIndexOf().

+ Here is the call graph for this function:

◆ lastIndexOf()

qsizetype QAnyStringViewUtils::lastIndexOf ( QAnyStringView whole,
QLatin1StringView part )
inline

Definition at line 87 of file qanystringviewutils_p.h.

References getLastIndexOf(), QtPrivate::isAscii(), Q_ASSERT, and view.

+ Here is the call graph for this function:

◆ processAsUtf8()

template<typename StringView , typename Handler >
auto QAnyStringViewUtils::processAsUtf8 ( StringView string,
Handler && handler )

Definition at line 125 of file qanystringviewutils_p.h.

References processAsUtf8(), and view.

Referenced by enquoteAnyString(), and processAsUtf8().

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

◆ split()

QList< QAnyStringView > QAnyStringViewUtils::split ( QAnyStringView source,
QLatin1StringView sep )
inline

Definition at line 157 of file qanystringviewutils_p.h.

References QList< T >::append(), QtPrivate::isAscii(), QList< T >::length(), list, Q_ASSERT, and sep.

+ Here is the call graph for this function:

◆ startsWith()

bool QAnyStringViewUtils::startsWith ( QAnyStringView whole,
QLatin1StringView part )
inline

Definition at line 58 of file qanystringviewutils_p.h.

References QtPrivate::isAscii(), QLatin1StringView::length(), and Q_ASSERT.

Referenced by ResolvedTypeAlias::ResolvedTypeAlias(), and QmlTypesClassDescription::findType().

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

◆ toInt() [1/4]

int QAnyStringViewUtils::toInt ( QAnyStringView string)
inline

Definition at line 100 of file qanystringviewutils_p.h.

References toInt(), and view.

+ Here is the call graph for this function:

◆ toInt() [2/4]

int QAnyStringViewUtils::toInt ( QLatin1StringView view)
inline

Definition at line 97 of file qanystringviewutils_p.h.

References view.

◆ toInt() [3/4]

int QAnyStringViewUtils::toInt ( QStringView view)
inline

Definition at line 98 of file qanystringviewutils_p.h.

References view.

◆ toInt() [4/4]

int QAnyStringViewUtils::toInt ( QUtf8StringView view)
inline

Definition at line 93 of file qanystringviewutils_p.h.

References QByteArrayView::toInt(), and view.

Referenced by toInt().

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

◆ toStringView() [1/2]

QAnyStringView QAnyStringViewUtils::toStringView ( const QCborMap & map,
QLatin1StringView key )
inline

Definition at line 45 of file qanystringviewutils_p.h.

References map, and toStringView().

+ Here is the call graph for this function:

◆ toStringView() [2/2]

QAnyStringView QAnyStringViewUtils::toStringView ( const QCborValue & value)
inline

Definition at line 27 of file qanystringviewutils_p.h.

References QList< T >::at(), QCborContainerPrivate::byteData(), QJsonPrivate::Value::container(), QCborContainerPrivate::elements, and QJsonPrivate::Value::valueHelper().

Referenced by Enum::Enum(), Interface::Interface(), MetaTypePrivate::MetaTypePrivate(), getAccess(), and toStringView().

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

◆ trimmed()

QAnyStringView QAnyStringViewUtils::trimmed ( QAnyStringView string)
inline

Definition at line 117 of file qanystringviewutils_p.h.

References doTrimmed(), and QAnyStringView::visit().

Referenced by ResolvedTypeAlias::ResolvedTypeAlias(), and doTrimmed().

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