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

QLatin1String

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

QLocale

Converts between numbers and their string representations in various languages

QStaticByteArrayMatcher

Compile-time version of QByteArrayMatcher

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

© 2021 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.