QStringConverter::FinalizeResultChar Struct
template <typename Char> struct QStringConverter::FinalizeResultChar存储在QStringDecoder 或QStringEncoder 上调用finalize()后的结果。更多...
该结构体在 Qt 6.11 中引入。
公共变量
| QStringConverter::FinalizeResultChar<Char>::Error | error |
| qint16 | invalidChars |
| Char * | next |
详细描述
FinalizeResultChar<Char> 是一个模板类,其中Char 指定字符类型(通常为char 或char16_t )。
该类用于传递 finalize() 调用的结果或调用失败的原因。
成员变量文档
QStringConverter::FinalizeResultChar<Char>::Error FinalizeResultChar::error
报告在最终处理过程中发现的错误。
qint16 FinalizeResultChar::invalidChars
此前在状态中统计的无效字符数量,以及在调用 finalize() 期间遇到的任何无效字符。
Char *FinalizeResultChar::next
指向紧跟在最后一个写入字符之后的字符位置。
© 2026 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.