![]() |
Qt 6.x
The Qt SDK
|
#include <qstringconverter_p.h>
Classes | |
struct | ValidUtf8Result |
Definition at line 290 of file qstringconverter_p.h.
|
staticnoexcept |
Definition at line 894 of file qstringconverter.cpp.
References Qt::CaseSensitive, QChar::Null, output, QtMiscUtils::qt_lencmp(), QChar::ReplacementCharacter, and QChar::toCaseFolded().
|
static |
Definition at line 864 of file qstringconverter.cpp.
References Qt::CaseInsensitive, QByteArrayView::data(), QChar::Null, output, QChar::ReplacementCharacter, QByteArrayView::size(), and QChar::toCaseFolded().
|
staticnoexcept |
Definition at line 824 of file qstringconverter.cpp.
References Qt::CaseInsensitive, QChar::isHighSurrogate(), QChar::isLowSurrogate(), output, QChar::ReplacementCharacter, simdCompareAscii(), QChar::surrogateToUcs4(), and QChar::toCaseFolded().
Referenced by QStringView::compareStrings(), QStringView::compareStrings(), QStringView::compareStrings(), QCborContainerPrivate::compareUtf8(), QCborContainerPrivate::compareUtf8(), QtPrivate::equalStrings(), and QtPrivate::equalStrings().
|
static |
Definition at line 575 of file qstringconverter.cpp.
|
static |
Definition at line 505 of file qstringconverter.cpp.
References QStringConverterBase::ConvertInvalidToNull, cursor, QUtf8BaseTraits::EndOfString, QUtf8BaseTraits::Error, HeaderDone, out, Q_ASSERT, Q_LIKELY, simdEncodeAscii(), state, QStringConverterBase::Stateless, utf8bom, and QStringConverterBase::WriteBom.
|
static |
Definition at line 468 of file qstringconverter.cpp.
References simdEncodeAscii(), QByteArray::size(), and Qt::Uninitialized.
Referenced by QLocal8Bit::convertFromUnicode(), convertFromUnicode(), and qt_convert_to_utf8().
|
static |
Definition at line 497 of file qstringconverter.cpp.
References ba, convertFromUnicode(), QByteArray::data(), state, QByteArray::truncate(), and Qt::Uninitialized.
|
staticnoexcept |
Converts the UTF-8 sequence of bytes viewed by in to a sequence of QChar starting at dst in the destination buffer. The buffer is expected to be large enough to hold the result. An upper bound for the size of the buffer is in.size()
QChars.
If, during decoding, an error occurs, a QChar::ReplacementCharacter is written.
Returns a pointer to one past the last QChar written.
This function never throws.
For QChar buffers, instead of casting manually, you can use the static QUtf8::convertToUnicode(QChar *, QByteArrayView) directly.
Definition at line 630 of file qstringconverter.cpp.
References Q_UNLIKELY, QChar::ReplacementCharacter, simdDecodeAscii(), and utf8bom.
|
static |
Definition at line 684 of file qstringconverter.cpp.
References begin(), ch, QStringConverterBase::ConvertInitialBom, QStringConverterBase::ConvertInvalidToNull, QUtf8BaseTraits::EndOfString, QUtf8BaseTraits::Error, HeaderDone, QChar::Null, Q_ASSERT, QChar::ReplacementCharacter, simdDecodeAscii(), state, QStringConverterBase::Stateless, and utf8bom.
|
static |
Definition at line 590 of file qstringconverter.cpp.
References convertToUnicode(), and Qt::Uninitialized.
|
static |
Definition at line 666 of file qstringconverter.cpp.
References convertToUnicode(), state, and Qt::Uninitialized.
|
inlinestaticnoexcept |
Definition at line 292 of file qstringconverter_p.h.
References convertToUnicode().
Referenced by append_utf8(), QAbstractConcatenable::convertFromUtf8(), convertToUnicode(), convertToUnicode(), QLocal8Bit::convertToUnicode(), convertToUnicode(), convertToUnicode(), QString::fromUtf8(), QString::insert(), and QCborStreamReaderPrivate::readStringChunk_unicode().
|
inlinestatic |
Definition at line 303 of file qstringconverter_p.h.
References convertToUnicode(), out, and state.
|
static |
Definition at line 793 of file qstringconverter.cpp.
References output, and simdFindNonAscii().
Referenced by checkNameDecodable(), and QtPrivate::isValidUtf8().