Logo Search packages:      
Sourcecode: qt4-x11 version File versions

QString QTextCodec::convertToUnicode ( const char *  chars,
int  len,
ConverterState *  state 
) const [protected, pure virtual]

QTextCodec subclasses must reimplement this function.

Converts the first len characters of chars from the encoding of the subclass to Unicode, and returns the result in a QString.

state can be 0, in which case the conversion is stateless and default conversion rules should be used. If state is not 0, the codec should save the state after the conversion in state, and adjust the remainingChars and invalidChars members of the struct.

Implemented in QIsciiCodec, QTsciiCodec, QGb18030Codec, QGbkCodec, QGb2312Codec, QEucJpCodec, QJisCodec, QSjisCodec, and QEucKrCodec.

Referenced by toUnicode().

Generated by  Doxygen 1.6.0   Back to index