字符串数据类

这些类与处理字符串数据相关。更多信息,请参阅Qt 中的 Unicode 支持信息

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

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

QRegularExpression

使用正则表达式进行模式匹配

QRegularExpressionMatch

正则表达式与字符串的匹配结果

QRegularExpressionMatchIterator

QRegularExpression 对象与字符串全局匹配结果的迭代器

QStaticByteArrayMatcher

QByteArrayMatcher 的编译时版本

QStaticLatin1StringMatcher

QLatin1StringMatcher 的编译时版本

QString

统一字符编码字符串

QStringList

字符串列表

QStringMatcher

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

QStringRef

QString 子串的精简包装器

QStringTokenizer

根据给定的分隔符将字符串分割成标记

QStringView

通过 QString API 的只读子集统一查看 UTF-16 字符串

QTextBoundaryFinder

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

QTextStream

读写文本的便捷接口

QUtf8StringView

使用 QString API 的只读子集统一查看 UTF-8 字符串

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