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

Public Member Functions

 QTextStatelessEncoder (const QTextCodec *)
 
QCString fromUnicode (const QString &uc, int &lenInOut)
 
- Public Member Functions inherited from QTextEncoder
virtual ~QTextEncoder ()
 

Private Attributes

const QTextCodeccodec
 

Detailed Description

Definition at line 117 of file qtextcodec.cpp.

Constructor & Destructor Documentation

QTextStatelessEncoder::QTextStatelessEncoder ( const QTextCodec c)

Definition at line 132 of file qtextcodec.cpp.

132  :
133  codec(c)
134 {
135 }
const QTextCodec * codec
Definition: qtextcodec.cpp:118

Member Function Documentation

QCString QTextStatelessEncoder::fromUnicode ( const QString uc,
int &  lenInOut 
)
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).

Implements QTextEncoder.

Definition at line 138 of file qtextcodec.cpp.

139 {
140  return codec->fromUnicode(uc,lenInOut);
141 }
virtual QCString fromUnicode(const QString &uc, int &lenInOut) const
Definition: qtextcodec.cpp:783
const QTextCodec * codec
Definition: qtextcodec.cpp:118

Member Data Documentation

const QTextCodec* QTextStatelessEncoder::codec
private

Definition at line 118 of file qtextcodec.cpp.


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