Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qstringtokenizer.h File Reference
#include <QtCore/qnamespace.h>
#include <QtCore/qcontainerfwd.h>
#include <QtCore/qstringview.h>
+ Include dependency graph for qstringtokenizer.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QStringTokenizerBaseBase
 
struct  QStringTokenizerBaseBase::tokenizer_state
 
class  QStringTokenizerBase< Haystack, Needle >
 
class  QStringTokenizerBase< Haystack, Needle >::sentinel
 
class  QStringTokenizerBase< Haystack, Needle >::iterator
 
struct  QtPrivate::Tok::ViewForImpl< String >
 
struct  QtPrivate::Tok::ViewForImpl< QStringView >
 
struct  QtPrivate::Tok::ViewForImpl< QLatin1StringView >
 
struct  QtPrivate::Tok::ViewForImpl< QChar >
 
struct  QtPrivate::Tok::ViewForImpl< QString >
 
struct  QtPrivate::Tok::ViewForImpl< QLatin1Char >
 
struct  QtPrivate::Tok::ViewForImpl< char16_t >
 
struct  QtPrivate::Tok::ViewForImpl< char16_t * >
 
struct  QtPrivate::Tok::ViewForImpl< const char16_t * >
 
struct  QtPrivate::Tok::ViewForImpl< QStringBuilder< LHS, RHS > >
 
struct  QtPrivate::Tok::ViewForImpl< std::basic_string< Char, Args... > >
 
struct  QtPrivate::Tok::PinForImpl< String >
 
struct  QtPrivate::Tok::PinForImpl< QString >
 
struct  QtPrivate::Tok::PinForImpl< std::basic_string< Char, Args... > >
 
struct  QtPrivate::Tok::PinForImpl< QStringBuilder< LHS, RHS > >
 
struct  QtPrivate::Tok::is_owning_string_type< T >
 
struct  QtPrivate::Tok::is_owning_string_type< QString >
 
struct  QtPrivate::Tok::is_owning_string_type< std::basic_string< Args... > >
 
struct  QtPrivate::Tok::Pinning< T, pinned >
 
struct  QtPrivate::Tok::Pinning< T, true >
 
struct  QtPrivate::Tok::NeedlePinning< T >
 
struct  QtPrivate::Tok::HaystackPinning< T >
 
class  QStringTokenizer< Haystack, Needle >
 \inmodule QtCore More...
 

Namespaces

namespace  QtPrivate
 \macro QT_NAMESPACE
 
namespace  QtPrivate::Tok
 

Macros

#define Q_STRINGTOKENIZER_USE_SENTINEL
 
#define Q_TOK_RESULT
 

Typedefs

template<typename String >
using QtPrivate::Tok::ViewFor = typename ViewForImpl< typename std::decay< String >::type >::type
 
template<typename StringLike >
using QtPrivate::Tok::PinFor = typename PinForImpl< typename std::remove_cv< StringLike >::type >::type
 
template<typename Haystack , typename Needle >
using QtPrivate::Tok::TokenizerBase = QStringTokenizerBase< ViewFor< Haystack >, ViewFor< Needle > >
 
template<typename Haystack , typename Needle >
using QtPrivate::Tok::TokenizerResult = Q_TOK_RESULT
 
template<typename Haystack , typename Needle >
using QtPrivate::Tok::is_nothrow_constructible_from = std::is_nothrow_copy_constructible< TokenizerResult< Haystack, Needle > >
 

Functions

constexpr qsizetype QtPrivate::Tok::size (QChar) noexcept
 
template<typename String >
constexpr qsizetype QtPrivate::Tok::size (const String &s) noexcept
 
template<typename Haystack , typename Needle , typename... Flags>
constexpr auto qTokenize (Haystack &&h, Needle &&n, Flags...flags) noexcept(QtPrivate::Tok::is_nothrow_constructible_from< Haystack, Needle >::value) -> decltype(QtPrivate::Tok::TokenizerResult< Haystack, Needle >{std::forward< Haystack >(h), std::forward< Needle >(n), flags...})
 

Macro Definition Documentation

◆ Q_STRINGTOKENIZER_USE_SENTINEL

#define Q_STRINGTOKENIZER_USE_SENTINEL

Definition at line 13 of file qstringtokenizer.h.

◆ Q_TOK_RESULT

#define Q_TOK_RESULT
Value:
> \
/*end*/
\inmodule QtCore
typename PinForImpl< typename std::remove_cv< StringLike >::type >::type PinFor

Definition at line 344 of file qstringtokenizer.h.

Function Documentation

◆ qTokenize()

template<typename Haystack , typename Needle , typename... Flags>
constexpr auto qTokenize ( Haystack &&  h,
Needle &&  n,
Flags...  flags 
) -> decltype(QtPrivate::Tok::TokenizerResult<Haystack, Needle>{std::forward<Haystack>(h), std::forward<Needle>(n), flags...})
related

Definition at line 381 of file qstringtokenizer.h.

Referenced by dirsList(), QLibrary::isLibrary(), QMetaEnum::keysToValue(), QLoggingSettingsParser::setContent(), QDirPrivate::splitFilters(), QString::tokenize(), QString::tokenize(), QString::tokenize(), QLatin1StringView::tokenize(), and QStringView::tokenize().

+ Here is the caller graph for this function: