Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QAnyStringViewUtils Namespace Reference

Functions

QAnyStringView toStringView (const QCborValue &value)
 
QAnyStringView toStringView (const QCborMap &map, QLatin1StringView key)
 
bool endsWith (QAnyStringView whole, QAnyStringView part)
 
bool startsWith (QAnyStringView whole, QAnyStringView 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)
 
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, QAnyStringView sep)
 

Function Documentation

◆ contains()

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

Definition at line 66 of file qanystringviewutils_p.h.

References doesContain(), view, and QAnyStringView::visit().

+ Here is the call graph for this function:

◆ doesContain() [1/3]

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

Definition at line 61 of file qanystringviewutils_p.h.

References QLatin1StringView::contains().

+ Here is the call graph for this function:

◆ doesContain() [2/3]

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

Definition at line 60 of file qanystringviewutils_p.h.

References QStringView::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 62 of file qanystringviewutils_p.h.

References QByteArrayView::contains(), QBasicUtf8StringView< UseChar8T >::data(), QBasicUtf8StringView< UseChar8T >::size(), and QLatin1Char::toLatin1().

+ Here is the call graph for this function:

◆ doTrimmed()

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

Definition at line 84 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,
QAnyStringView  part 
)
inline

Definition at line 50 of file qanystringviewutils_p.h.

References QAnyStringView::last(), and QAnyStringView::length().

+ Here is the call graph for this function:

◆ processAsUtf8()

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

Definition at line 103 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,
QAnyStringView  sep 
)
inline

Definition at line 134 of file qanystringviewutils_p.h.

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

+ Here is the call graph for this function:

◆ startsWith()

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

Definition at line 55 of file qanystringviewutils_p.h.

References QAnyStringView::first(), and QAnyStringView::length().

Referenced by 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 78 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 75 of file qanystringviewutils_p.h.

References view.

◆ toInt() [3/4]

int QAnyStringViewUtils::toInt ( QStringView  view)
inline

Definition at line 76 of file qanystringviewutils_p.h.

References view.

◆ toInt() [4/4]

int QAnyStringViewUtils::toInt ( QUtf8StringView  view)
inline

Definition at line 71 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(), e, QCborContainerPrivate::elements, QtCbor::Element::StringIsAscii, QtCbor::Element::StringIsUtf16, and QJsonPrivate::Value::valueHelper().

Referenced by QmlTypesClassDescription::collect(), QmlTypesClassDescription::collectLocalAnonymous(), MetaTypesJsonProcessor::extractRegisteredTypes(), QmlTypesClassDescription::findType(), MetaTypesJsonProcessor::namespaces(), toStringView(), and QmlTypeRegistrar::write().

+ 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 95 of file qanystringviewutils_p.h.

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

Referenced by doTrimmed().

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