Public Member Functions | Private Attributes | List of all members
QTextStatelessDecoder Class Reference
Inheritance diagram for QTextStatelessDecoder:
QTextDecoder

Public Member Functions

 QTextStatelessDecoder (const QTextCodec *)
 
QString toUnicode (const char *chars, int len)
 
- Public Member Functions inherited from QTextDecoder
virtual ~QTextDecoder ()
 

Private Attributes

const QTextCodeccodec
 

Detailed Description

Definition at line 125 of file qtextcodec.cpp.

Constructor & Destructor Documentation

QTextStatelessDecoder::QTextStatelessDecoder ( const QTextCodec c)

Definition at line 144 of file qtextcodec.cpp.

144  :
145  codec(c)
146 {
147 }
const QTextCodec * codec
Definition: qtextcodec.cpp:126

Member Function Documentation

QString QTextStatelessDecoder::toUnicode ( const char *  chars,
int  len 
)
virtual

Converts the first len bytes at chars to Unicode, returning the result.

If not all characters are used (eg. only part of a multi-byte encoding is at the end of the characters), the decoder remembers enough state to continue with the next call to this function.

Implements QTextDecoder.

Definition at line 150 of file qtextcodec.cpp.

151 {
152  return codec->toUnicode(chars,len);
153 }
virtual QString toUnicode(const char *chars, int len) const
Definition: qtextcodec.cpp:757
const QTextCodec * codec
Definition: qtextcodec.cpp:126

Member Data Documentation

const QTextCodec* QTextStatelessDecoder::codec
private

Definition at line 126 of file qtextcodec.cpp.


The documentation for this class was generated from the following file: