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
qstringtokenizer.h File Reference

(aa896ca9f51252b6d01766e19a03e41bd49857f3)

#include <QtCore/qnamespace.h>
#include <QtCore/qcontainerfwd.h>
#include <iterator>
#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_NO_KEYWORDS >
 
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 14 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 345 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 382 of file qstringtokenizer.h.

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

+ Here is the caller graph for this function: