#include <qtextcodec.h>
Definition at line 62 of file qtextcodec.h.
Classes | |
struct | ConverterState |
Public Types | |
enum | ConversionFlag { DefaultConversion, ConvertInvalidToNull = 0x80000000, IgnoreHeader = 0x1, FreeFunction = 0x2 } |
Public Member Functions | |
bool | canEncode (QChar) const |
bool | canEncode (const QString &) const |
QString | toUnicode (const QByteArray &) const |
QString | toUnicode (const char *chars) const |
QByteArray | fromUnicode (const QString &uc) const |
QString | toUnicode (const char *in, int length, ConverterState *state=0) const |
QByteArray | fromUnicode (const QChar *in, int length, ConverterState *state=0) const |
QTextDecoder * | makeDecoder () const |
QTextDecoder * | makeDecoder (ConversionFlags flags) const |
QTextEncoder * | makeEncoder () const |
QTextEncoder * | makeEncoder (ConversionFlags flags) const |
virtual QByteArray | name () const =0 |
virtual QList< QByteArray > | aliases () const |
virtual int | mibEnum () const =0 |
Static Public Member Functions | |
static QTextCodec * | codecForName (const QByteArray &name) |
static QTextCodec * | codecForName (const char *name) |
static QTextCodec * | codecForMib (int mib) |
static QList< QByteArray > | availableCodecs () |
static QList< int > | availableMibs () |
static QTextCodec * | codecForLocale () |
static void | setCodecForLocale (QTextCodec *c) |
static QTextCodec * | codecForTr () |
static void | setCodecForTr (QTextCodec *c) |
static QTextCodec * | codecForCStrings () |
static void | setCodecForCStrings (QTextCodec *c) |
static QTextCodec * | codecForHtml (const QByteArray &ba) |
static QTextCodec * | codecForHtml (const QByteArray &ba, QTextCodec *defaultCodec) |
static QTextCodec * | codecForUtfText (const QByteArray &ba) |
static QTextCodec * | codecForUtfText (const QByteArray &ba, QTextCodec *defaultCodec) |
Protected Member Functions | |
virtual QString | convertToUnicode (const char *in, int length, ConverterState *state) const =0 |
virtual QByteArray | convertFromUnicode (const QChar *in, int length, ConverterState *state) const =0 |
QTextCodec () | |
virtual | ~QTextCodec () |
Friends | |
class | QTextCodecCleanup |
enum ConversionFlag |
Enumerator | |
---|---|
DefaultConversion | |
ConvertInvalidToNull | |
IgnoreHeader | |
FreeFunction |
Definition at line 94 of file qtextcodec.h.
|
protected |
|
protectedvirtual |
|
static |
|
inlinestatic |
Definition at line 67 of file qtextcodec.h.
|
static |
|
static |
|
static |
|
static |
|
inlinestatic |
Definition at line 155 of file qtextcodec.h.
|
inlinestatic |
Definition at line 156 of file qtextcodec.h.
|
inlinestatic |
Definition at line 157 of file qtextcodec.h.
|
inlinestatic |
Definition at line 158 of file qtextcodec.h.
|
static |
|
static |
|
static |
|
static |
bool canEncode | ( | QChar | ) | const |
bool canEncode | ( | const QString & | ) | const |
QString toUnicode | ( | const QByteArray & | ) | const |
QString toUnicode | ( | const char * | chars | ) | const |
QByteArray fromUnicode | ( | const QString & | uc | ) | const |
|
inline |
Definition at line 115 of file qtextcodec.h.
|
inline |
Definition at line 117 of file qtextcodec.h.
QTextDecoder* makeDecoder | ( | ) | const |
QTextDecoder* makeDecoder | ( | ConversionFlags | flags | ) | const |
QTextEncoder* makeEncoder | ( | ) | const |
QTextEncoder* makeEncoder | ( | ConversionFlags | flags | ) | const |
|
pure virtual |
|
virtual |
|
pure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
friend |
Definition at line 149 of file qtextcodec.h.