QtBase  v6.3.1
Classes | Namespaces | Macros | Typedefs | Functions
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< QLatin1String >
 
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 >
 The QStringTokenizer class splits strings into tokens along given separators. \reentrant. More...
 

Namespaces

 QtPrivate
 
 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 49 of file qstringtokenizer.h.

◆ Q_TOK_RESULT

#define Q_TOK_RESULT
Value:
QtPrivate::Tok::PinFor<Haystack>, \
QtPrivate::Tok::PinFor<Needle> \
> \
/*end*/
The QStringTokenizer class splits strings into tokens along given separators. \reentrant.

Definition at line 380 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 417 of file qstringtokenizer.h.

Here is the caller graph for this function: