用于字符串数据的类

These classes are relevant when working with string data. See the information about support for Unicode in Qt 了解更多信息。

QAnyStringView

带有 QString API 只读子集的 Latin-1、UTF-8 或 UTF-16 字符串统一视图

QByteArray

字节数组

QByteArrayList

字节数组列表

QByteArrayMatcher

保持在字节数组中可以快速匹配的字节序列

QByteArrayView

带有只读 QByteArray API 子集的字节数组视图

QChar

16 位 Unicode 字符

QCollator

根据本地整理算法比较字符串

QCollatorSortKey

可以用于加速字符串整理

QLatin1Char

8 位 ASCII/Latin-1 字符

QLatin1StringMatcher

优化搜索 Latin-1 文本中的子字符串

QLatin1StringView

围绕 US-ASCII/Latin-1 编码字符串文字的瘦包裹器

QLocale

在数字及其各种语言的字符串表示之间转换

QStaticByteArrayMatcher

QByteArrayMatcher 的编译时版本

QString

Unicode 字符串

QStringList

字符串列表

QStringMatcher

保持可以在 Unicode 字符串中快速匹配的字符序列

QStringRef

围绕 QString 子字符串的瘦包裹器

QStringTokenizer

沿给定分隔符将字符串分割成令牌

QStringView

带有 QString API 只读子集的 UTF-16 字符串统一视图

QTextBoundaryFinder

在字符串中查找 Unicode 文本边界的办法

QTextStream

用于读写文本的方便接口

QUtf8StringView

带有 QString API 只读子集的 UTF-8 字符串统一视图