7#pragma qt_class(QStringConverter)
8#pragma qt_class(QStringConverterBase)
11#ifndef QSTRINGCONVERTER_H
12#define QSTRINGCONVERTER_H
14#include <QtCore/qstringconverter_base.h>
15#include <QtCore/qstring.h>
16#if defined(QT_USE_FAST_OPERATOR_PLUS) || defined(QT_USE_QSTRINGBUILDER)
17#include <QtCore/qstringbuilder.h>
164#if defined(QT_USE_FAST_OPERATOR_PLUS) || defined(QT_USE_QSTRINGBUILDER)
171 enum { ExactSize =
false };
175 out =
s.decoder->appendToBuffer(
out,
s.data);
185 enum { ExactSize =
false };
189 out =
s.encoder->appendToBuffer(
out,
s.data);
Encoding
\value Utf8 Create a converter to or from UTF-8 \value Utf16 Create a converter to or from UTF-16.
constexpr QStringConverter() noexcept
constexpr QStringDecoder(Encoding encoding, Flags flags=Flag::Default)
Creates an decoder object using encoding and flags.
EncodedData< QByteArrayView > decode(QByteArrayView ba)
Converts ba and returns the data as a QString.
char16_t * appendToBuffer(char16_t *out, QByteArrayView ba)
constexpr QStringDecoder(const Interface *i) noexcept
qsizetype requiredSpace(qsizetype inputLength) const
Returns the maximum amount of UTF-16 code units required to be able to process inputLength encoded da...
QChar * appendToBuffer(QChar *out, QByteArrayView ba)
Decodes the sequence of bytes viewed by in and writes the decoded result into the buffer starting at ...
static Q_CORE_EXPORT QStringDecoder decoderForHtml(QByteArrayView data)
Tries to determine the encoding of the HTML in data by looking at leading byte order marks or a chars...
Q_WEAK_OVERLOAD EncodedData< const QByteArray & > decode(const QByteArray &ba)
Q_WEAK_OVERLOAD EncodedData< const QByteArray & > operator()(const QByteArray &ba)
QStringDecoder(const char *name, Flags f=Flag::Default)
Creates an decoder object using name and flags.
EncodedData< QByteArrayView > operator()(QByteArrayView ba)
constexpr QStringDecoder() noexcept
Default constructs an decoder.
QStringEncoder(const char *name, Flags flags=Flag::Default)
Creates an encoder object using name and flags.
constexpr QStringEncoder() noexcept
Default constructs an encoder.
char * appendToBuffer(char *out, QStringView in)
Encodes in and writes the encoded result into the buffer starting at out.
constexpr QStringEncoder(Encoding encoding, Flags flags=Flag::Default)
Creates an encoder object using encoding and flags.
DecodedData< QStringView > operator()(QStringView in)
Converts in and returns the data as a byte array.
qsizetype requiredSpace(qsizetype inputLength) const
Returns the maximum amount of characters required to be able to process inputLength decoded data.
DecodedData< QStringView > encode(QStringView in)
Q_WEAK_OVERLOAD DecodedData< const QString & > encode(const QString &str)
Q_WEAK_OVERLOAD DecodedData< const QString & > operator()(const QString &str)
constexpr QStringEncoder(const Interface *i) noexcept
\macro QT_RESTRICTED_CAST_FROM_ASCII
QSet< QString >::iterator it
Combined button and popup list for selecting options.
constexpr Initialization Uninitialized
constexpr timespec & operator+=(timespec &t1, const timespec &t2)
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
QTextStream out(stdout)
[7]