C

QStringSplitter Class

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

This class was introduced in QtSafeRenderer 1.0.

Public Types

enum QStringSplitterException { TooLongFileName }

Public Functions

bool hasNext()
void next(SafeRenderer::qchar (&)[256] target = Constraints::MAX_FILENAME_LEN)

Detailed Description

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

bool QStringSplitter::hasNext()

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

void QStringSplitter::next(SafeRenderer::qchar (&)[256] target = Constraints::MAX_FILENAME_LEN)

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.