45 #ifndef QT_NO_TEXTCODEC 68 for (
int i = 0; i < len; ++i) {
73 d[i] = (char)ch[i].cell();
156 for (
int i = 0; i < length; ++i) {
174 c = (
unsigned char) uc;
178 c = (
unsigned char) uc;
183 else if ((uc & 0xff00) == 0x0100) {
227 return "ISO-8859-15";
244 #endif // QT_NO_TEXTCODEC
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const
QTextCodec subclasses must reimplement this function.
#define QT_END_NAMESPACE
This macro expands to.
char * data()
Returns a pointer to the data stored in the byte array.
ushort unicode() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
The QByteArray class provides an array of bytes.
QByteArray name() const
QTextCodec subclasses must reimplement this function.
QByteArray name() const
QTextCodec subclasses must reimplement this function.
int mibEnum() const
Subclasses of QTextCodec must reimplement this function.
QString convertToUnicode(const char *, int, ConverterState *) const
QTextCodec subclasses must reimplement this function.
The QString class provides a Unicode character string.
The QChar class provides a 16-bit Unicode character.
QChar * data()
Returns a pointer to the data stored in the QString.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
QList< QByteArray > aliases() const
Subclasses can return a number of aliases for the codec in question.
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const
QTextCodec subclasses must reimplement this function.
int mibEnum() const
Subclasses of QTextCodec must reimplement this function.
QString convertToUnicode(const char *, int, ConverterState *) const
QTextCodec subclasses must reimplement this function.
QList< QByteArray > aliases() const
Subclasses can return a number of aliases for the codec in question.