Public Member Functions | List of all members
QTextEncoder Class Referenceabstract

State-based encoder. More...

#include <qtextcodec.h>

Inheritance diagram for QTextEncoder:
QTextStatelessEncoder QUtf16Encoder

Public Member Functions

virtual ~QTextEncoder ()
 
virtual QCString fromUnicode (const QString &uc, int &lenInOut)=0
 

Detailed Description

State-based encoder.

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

See also
QTextCodec::makeEncoder()

Definition at line 50 of file qtextcodec.h.

Constructor & Destructor Documentation

QTextEncoder::~QTextEncoder ( )
virtual

Destructs the encoder.

Definition at line 866 of file qtextcodec.cpp.

867 {
868 }

Member Function Documentation

QCString QTextEncoder::fromUnicode ( const QString uc,
int &  lenInOut 
)
pure virtual

Converts lenInOut characters (not bytes) from uc, producing a QCString. lenInOut will also be set to the length of the result (in bytes).

The encoder is free to record state to use when subsequent calls are made to this function (for example, it might change modes with escape sequences if needed during the encoding of one string, then assume that mode applies when a subsequent call begins).

Implemented in QUtf16Encoder, and QTextStatelessEncoder.


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