Classes for String Data

These classes are relevant when working with string data. See the information about support for Unicode in Qt for more information.

QAnyStringView

Unified view on Latin-1, UTF-8, or UTF-16 strings with a read-only subset of the QString API

QByteArray

Array of bytes

QByteArrayList

List of byte arrays

QByteArrayMatcher

Holds a sequence of bytes that can be quickly matched in a byte array

QByteArrayView

View on an array of bytes with a read-only subset of the QByteArray API

QChar

16-bit Unicode character

QCollator

Compares strings according to a localized collation algorithm

QCollatorSortKey

Can be used to speed up string collation

QLatin1Char

8-bit ASCII/Latin-1 character

QLatin1StringMatcher

Optimized search for substring in Latin-1 text

QLatin1StringView

Thin wrapper around a US-ASCII/Latin-1 encoded string literal

QLocale

Converts between numbers and their string representations in various languages

QStaticByteArrayMatcher

Compile-time version of QByteArrayMatcher

QStaticLatin1StringMatcher

Compile-time version of QLatin1StringMatcher

QString

Unicode character string

QStringList

List of strings

QStringMatcher

Holds a sequence of characters that can be quickly matched in a Unicode string

QStringRef

Thin wrapper around QString substrings

QStringTokenizer

Splits strings into tokens along given separators

QStringView

Unified view on UTF-16 strings with a read-only subset of the QString API

QTextBoundaryFinder

Way of finding Unicode text boundaries in a string

QTextStream

Convenient interface for reading and writing text

QUtf8StringView

Unified view on UTF-8 strings with a read-only subset of the QString API