qtextencoder3qt
State-based encoder
Usage
All the functions in this class are reentrant when Qt is built with thread support.</p>
#include <qtextcodec.h>
Public Members
virtual ~QTextEncoder ()
virtual QCString fromUnicode ( const QString & uc, int & lenInOut ) = 0
Overview
The QTextEncoder class provides a state-based encoder.
The encoder converts Unicode into another format, remembering any state that is required between calls.
See also QTextCodec::makeEncoder() and Internationalization with Qt.
Member function documentation
QTextEncoder::~QTextEncoder () [virtual]
Destroys the encoder.
QCString QTextEncoder::fromUnicode ( const QString & uc, int & lenInOut ) [pure virtual]
Converts lenInOut characters (not bytes) from uc, producing a QCString. lenInOut will 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).
Releases
6 releases since Debian 2.2 (Potato); the text changed 4 times.