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

QRegularExpression

Pattern matching using regular expressions

QRegularExpressionMatch

The results of a matching a QRegularExpression against a string

QRegularExpressionMatchIterator

Iterator on the results of a global match of a QRegularExpression object against a string

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

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.