Qt:Документация 4.3.2/qtextdecoder

Материал из Wiki.crossplatform.ru

Версия от 14:16, 12 января 2009; Root (Обсуждение | вклад)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

[править] QTextDecoder Class Reference
[модуль QtCore ]

The QTextDecoder class provides a state-based decoder. Далее...

 #include <QTextDecoder>

Примечание: все функции в этом классе реентерабельны.

[править] Открытые функции


[править] Подробное описание

The QTextDecoder class provides a state-based decoder.

A text decoder converts text from an encoded text format into Unicode using a specific codec.

The decoder converts text in this format into Unicode, remembering any state that is required between calls.

See also QTextCodec::makeDecoder() and QTextEncoder.


[править] Описание функций-членов

[править]
QTextDecoder::QTextDecoder ( const QTextCodec * codec )

Constructs a text decoder for the given codec.

[править]
QTextDecoder::~QTextDecoder ()

Destroys the decoder.

[править]
QString QTextDecoder::toUnicode ( const char * chars, int len )

Converts the first len bytes in chars to Unicode, returning the result.

If not all characters are used (e.g. if 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.

[править]
void QTextDecoder::toUnicode ( QString * target, const char * chars, int len )

Эта перегруженная функция предоставлена для удобства.

The converted string is returned in target.

[править]
QString QTextDecoder::toUnicode ( const QByteArray & ba )

Эта перегруженная функция предоставлена для удобства.

Converts the bytes in the byte array specified by ba to Unicode and returns the result.



Copyright © 2007 Trolltech Trademarks
Qt 4.3.2