Public Member Functions | List of all members
QTextDecoder Class Referenceabstract

State-based decoder. More...

#include <qtextcodec.h>

Inheritance diagram for QTextDecoder:
QTextCodecFromIODDecoder QTextStatelessDecoder QUtf16Decoder QUtf8Decoder

Public Member Functions

virtual ~QTextDecoder ()
 
virtual QString toUnicode (const char *chars, int len)=0
 

Detailed Description

State-based decoder.

A QTextEncoder converts a text format into Unicode, remembering any state that is required between calls.

See also
QTextCodec::makeEncoder()

Definition at line 56 of file qtextcodec.h.

Constructor & Destructor Documentation

QTextDecoder::~QTextDecoder ( )
virtual

Destructs the decoder.

Definition at line 896 of file qtextcodec.cpp.

897 {
898 }

Member Function Documentation

QString QTextDecoder::toUnicode ( const char *  chars,
int  len 
)
pure 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.

Implemented in QTextCodecFromIODDecoder, QUtf16Decoder, QTextStatelessDecoder, and QUtf8Decoder.


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