40 #ifndef QT_NO_TEXTCODEC 53 for (
int i=0; i<
l; i++) {
55 if ( !ch.
row() && ch.
cell() < 0x80 ) {
56 *cursor++ = ch.
cell();
59 if ( ch.
row() < 0x08 ) {
62 *cursor++ = 0xe0 | (ch.
row() >> 4);
63 *cursor++ = 0x80 | (b&0x3f);
65 *cursor++ = 0x80 | (ch.
cell()&0x3f);
81 for (
int i=0; i<len; i++) {
89 }
else if ( (ch&0xe0) == 0xc0 ) {
91 uchar c2 = chars[++i];
92 if ( (c2&0xc0) != 0x80 )
96 }
else if ( (ch&0xf0) == 0xe0 ) {
98 uchar c2 = chars[++i];
99 if ( (c2&0xc0) != 0x80 ) {
103 uchar c3 = chars[++i];
104 if ( (c3&0xc0) != 0x80 )
131 for (
int i=0; i<len; i++) {
134 if ( (ch&0xc0) == 0x80 ) {
135 uc = (uc << 6) | (ch & 0x3f);
148 }
else if ( (ch&0xe0) == 0xc0 ) {
151 }
else if ( (ch&0xf0) == 0xe0 ) {
178 return "ISO-10646-UCS-2";
184 if ( len >= 2 && ((uchars[0] == 0xff && uchars[1] == 0xfe) ||
185 (uchars[1] == 0xff && uchars[0] == 0xfe)) )
242 ch.
cell() = *chars++;
276 #endif // QT_NO_TEXTCODEC
const QChar * unicode() const
const char * name() const
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
virtual int mibEnum() const
The QChar class provides a light-weight Unicode character.
int heuristicContentMatch(const char *chars, int len) const
const char * name() const
QString toUnicode(const char *chars, int len)
QTextDecoder * makeDecoder() const
void swap(Handle< T > &a, Handle< T > &b)
QTextDecoder * makeDecoder() const
QString toUnicode(const char *chars, int len)
QT_STATIC_CONST QChar replacement
int heuristicContentMatch(const char *chars, int len) const
QCString fromUnicode(const QString &uc, int &len_in_out)
const char * data() const
QT_STATIC_CONST QChar byteOrderMark
QCString fromUnicode(const QString &uc, int &len_in_out) const
virtual int mibEnum() const
QT_STATIC_CONST QChar byteOrderSwapped
QTextEncoder * makeEncoder() const