C

QStringSplitter Class

(SafeRenderer::QStringSplitter)

Splits the string this instance was constructed with to segments separated by split character. More...

Header: #include <QStringSplitter>
Since: QtSafeRenderer 1.0

Public Types

enum QStringSplitterException { TooLongFileName }

Public Functions

QStringSplitter(const qchar * const string)
bool hasNext()
void next(qchar *target)

Detailed Description

Splits the string this instance was constructed with to segments separated by split character.

Member Type Documentation

enum QStringSplitter::QStringSplitterException

This enum describes the thrown exceptions of QStringSplitter class.

ConstantValueDescription
SafeRenderer::QStringSplitter::TooLongFileName0The string to be split does not fit inside SafeRenderer::Constraints::MAX_FILENAME_LEN.

Member Function Documentation

QStringSplitter::QStringSplitter(const qchar * const string)

Default constructs an instance of QStringSplitter.

bool QStringSplitter::hasNext()

Returns true if there are segment(s) left in the string; false otherwise.

void QStringSplitter::next(qchar *target)

Copies the next string segment to target buffer.

If the length of the string to be split exceeds SafeRenderer::Constraints::MAX_FILENAME_LEN, this function will throw a TooLongFileName exception.

Available under certain Qt licenses.
Find out more.