Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QStringIterator Class Reference

#include <qstringiterator_p.h>

+ Collaboration diagram for QStringIterator:

Public Member Functions

 QStringIterator (QStringView string, qsizetype idx=0)
 
 QStringIterator (const QChar *begin, const QChar *end)
 
 QStringIterator (const QChar *begin, qsizetype idx, const QChar *end)
 
QString::const_iterator position () const
 
qsizetype index () const
 
void setPosition (QString::const_iterator position)
 
bool hasNext () const
 
void advance ()
 
void advanceUnchecked ()
 
char32_t peekNextUnchecked () const
 
char32_t peekNext (char32_t invalidAs=QChar::ReplacementCharacter) const
 
char32_t nextUnchecked ()
 
char32_t next (char32_t invalidAs=QChar::ReplacementCharacter)
 
bool hasPrevious () const
 
void recede ()
 
void recedeUnchecked ()
 
char32_t peekPreviousUnchecked () const
 
char32_t peekPrevious (char32_t invalidAs=QChar::ReplacementCharacter) const
 
char32_t previousUnchecked ()
 
char32_t previous (char32_t invalidAs=QChar::ReplacementCharacter)
 

Detailed Description

Definition at line 24 of file qstringiterator_p.h.

Constructor & Destructor Documentation

◆ QStringIterator() [1/3]

QStringIterator::QStringIterator ( QStringView  string,
qsizetype  idx = 0 
)
inlineexplicit

Definition at line 31 of file qstringiterator_p.h.

References e, i, and pos.

◆ QStringIterator() [2/3]

QStringIterator::QStringIterator ( const QChar begin,
const QChar end 
)
inlineexplicit

Definition at line 38 of file qstringiterator_p.h.

References e, i, and pos.

◆ QStringIterator() [3/3]

QStringIterator::QStringIterator ( const QChar begin,
qsizetype  idx,
const QChar end 
)
inlineexplicit

Definition at line 45 of file qstringiterator_p.h.

References e, i, and pos.

Member Function Documentation

◆ advance()

void QStringIterator::advance ( )
inline

Definition at line 76 of file qstringiterator_p.h.

References e, hasNext(), pos, Q_ASSERT_X, Q_FUNC_INFO, Q_LIKELY, and Q_UNLIKELY.

+ Here is the call graph for this function:

◆ advanceUnchecked()

void QStringIterator::advanceUnchecked ( )
inline

Definition at line 86 of file qstringiterator_p.h.

References hasNext(), pos, Q_ASSERT, Q_ASSERT_X, Q_FUNC_INFO, and Q_UNLIKELY.

+ Here is the call graph for this function:

◆ hasNext()

bool QStringIterator::hasNext ( ) const
inline

Definition at line 71 of file qstringiterator_p.h.

References e, and pos.

Referenced by _hb_qt_unicode_decompose(), advance(), advanceUnchecked(), next(), nextUnchecked(), peekNext(), peekNextUnchecked(), and ucstricmp8().

+ Here is the caller graph for this function:

◆ hasPrevious()

bool QStringIterator::hasPrevious ( ) const
inline

Definition at line 152 of file qstringiterator_p.h.

References i, and pos.

Referenced by peekPrevious(), peekPreviousUnchecked(), previous(), previousUnchecked(), recede(), and recedeUnchecked().

+ Here is the caller graph for this function:

◆ index()

qsizetype QStringIterator::index ( ) const
inline

Definition at line 57 of file qstringiterator_p.h.

References i, and pos.

◆ next()

char32_t QStringIterator::next ( char32_t  invalidAs = QChar::ReplacementCharacter)
inline

Definition at line 136 of file qstringiterator_p.h.

References hasNext(), QChar::isHighSurrogate(), QChar::isSurrogate(), pos, Q_ASSERT_X, Q_FUNC_INFO, Q_LIKELY, Q_UNLIKELY, QChar::surrogateToUcs4(), and QChar::unicode().

Referenced by _hb_qt_unicode_decompose(), and ucstricmp8().

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

◆ nextUnchecked()

char32_t QStringIterator::nextUnchecked ( )
inline

Definition at line 124 of file qstringiterator_p.h.

References hasNext(), QChar::isHighSurrogate(), pos, Q_ASSERT, Q_ASSERT_X, Q_FUNC_INFO, Q_UNLIKELY, QChar::surrogateToUcs4(), and QChar::unicode().

+ Here is the call graph for this function:

◆ peekNext()

char32_t QStringIterator::peekNext ( char32_t  invalidAs = QChar::ReplacementCharacter) const
inline

Definition at line 108 of file qstringiterator_p.h.

References e, hasNext(), QChar::isLowSurrogate(), pos, Q_ASSERT_X, Q_FUNC_INFO, Q_LIKELY, Q_UNLIKELY, and QChar::surrogateToUcs4().

+ Here is the call graph for this function:

◆ peekNextUnchecked()

char32_t QStringIterator::peekNextUnchecked ( ) const
inline

Definition at line 96 of file qstringiterator_p.h.

References e, hasNext(), pos, Q_ASSERT, Q_ASSERT_X, Q_FUNC_INFO, Q_UNLIKELY, and QChar::surrogateToUcs4().

+ Here is the call graph for this function:

◆ peekPrevious()

char32_t QStringIterator::peekPrevious ( char32_t  invalidAs = QChar::ReplacementCharacter) const
inline

Definition at line 189 of file qstringiterator_p.h.

References hasPrevious(), i, QChar::isHighSurrogate(), pos, Q_ASSERT_X, Q_FUNC_INFO, Q_LIKELY, Q_UNLIKELY, and QChar::surrogateToUcs4().

+ Here is the call graph for this function:

◆ peekPreviousUnchecked()

char32_t QStringIterator::peekPreviousUnchecked ( ) const
inline

Definition at line 178 of file qstringiterator_p.h.

References hasPrevious(), i, pos, Q_ASSERT, Q_ASSERT_X, Q_FUNC_INFO, Q_UNLIKELY, and QChar::surrogateToUcs4().

+ Here is the call graph for this function:

◆ position()

QString::const_iterator QStringIterator::position ( ) const
inline

Definition at line 52 of file qstringiterator_p.h.

References pos.

Referenced by setPosition().

+ Here is the caller graph for this function:

◆ previous()

char32_t QStringIterator::previous ( char32_t  invalidAs = QChar::ReplacementCharacter)
inline

Definition at line 217 of file qstringiterator_p.h.

References hasPrevious(), QChar::isLowSurrogate(), QChar::isSurrogate(), pos, Q_ASSERT_X, Q_FUNC_INFO, Q_LIKELY, Q_UNLIKELY, QChar::surrogateToUcs4(), and QChar::unicode().

+ Here is the call graph for this function:

◆ previousUnchecked()

char32_t QStringIterator::previousUnchecked ( )
inline

Definition at line 205 of file qstringiterator_p.h.

References hasPrevious(), QChar::isLowSurrogate(), pos, Q_ASSERT, Q_ASSERT_X, Q_FUNC_INFO, Q_UNLIKELY, QChar::surrogateToUcs4(), and QChar::unicode().

+ Here is the call graph for this function:

◆ recede()

void QStringIterator::recede ( )
inline

Definition at line 157 of file qstringiterator_p.h.

References hasPrevious(), i, QChar::isHighSurrogate(), pos, Q_ASSERT_X, Q_FUNC_INFO, Q_LIKELY, and Q_UNLIKELY.

+ Here is the call graph for this function:

◆ recedeUnchecked()

void QStringIterator::recedeUnchecked ( )
inline

Definition at line 168 of file qstringiterator_p.h.

References hasPrevious(), pos, Q_ASSERT, Q_ASSERT_X, Q_FUNC_INFO, and Q_UNLIKELY.

+ Here is the call graph for this function:

◆ setPosition()

void QStringIterator::setPosition ( QString::const_iterator  position)
inline

Definition at line 62 of file qstringiterator_p.h.

References e, i, pos, position(), Q_ASSERT_X, and Q_FUNC_INFO.

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: