http://www.wiki.crossplatform.ru/index.php?title=Qt:%D0%94%D0%BE%D0%BA%D1%83%D0%BC%D0%B5%D0%BD%D1%82%D0%B0%D1%86%D0%B8%D1%8F_4.3.2/qtextdecoder&feed=atom&action=historyQt:Документация 4.3.2/qtextdecoder - История изменений2024-03-28T08:27:53ZИстория изменений этой страницы в викиMediaWiki 1.15.1http://www.wiki.crossplatform.ru/index.php?title=Qt:%D0%94%D0%BE%D0%BA%D1%83%D0%BC%D0%B5%D0%BD%D1%82%D0%B0%D1%86%D0%B8%D1%8F_4.3.2/qtextdecoder&diff=4441&oldid=prevRoot: Новая: {{Qt4.3.2_header}} =QTextDecoder Class Reference<br /><sup><sup>[модуль QtCore ] </sup></sup>= The QTextDecoder class provides a st...2009-01-12T14:16:14Z<p>Новая: {{Qt4.3.2_header}} =QTextDecoder Class Reference<br /><sup><sup>[модуль <a href="/index.php/Qt:%D0%94%D0%BE%D0%BA%D1%83%D0%BC%D0%B5%D0%BD%D1%82%D0%B0%D1%86%D0%B8%D1%8F_4.3.2/qtcore" title="Qt:Документация 4.3.2/qtcore"> QtCore</a> ] </sup></sup>= The QTextDecoder class provides a st...</p>
<p><b>Новая страница</b></p><div>{{Qt4.3.2_header}}<br />
<br />
=QTextDecoder Class Reference<br /><sup><sup>[модуль [[Qt:Документация 4.3.2/qtcore | QtCore]] ] </sup></sup>=<br />
<br />
The QTextDecoder class provides a state-based decoder. [[#details | Далее...]]<br />
<source lang="cpp-qt"> #include <QTextDecoder></source> <br />
'''Примечание:''' все функции в этом классе [[Qt:Документация 4.3.2/threads#reentrant | реентерабельны]].<br />
<br />
*[[Qt:Документация 4.3.2/qtextdecoder-members | Список всех членов, включая унаследованные]]<br />
<div id="public-functions"></div><br />
===Открытые функции===<br />
<br />
*'''[[Qt:Документация 4.3.2/qtextdecoder#QTextDecoder | QTextDecoder]]''' ( const QTextCodec * ''codec'' )<br />
*'''[[Qt:Документация 4.3.2/qtextdecoder#dtor.QTextDecoder | ~QTextDecoder]]''' ()<br />
*QString '''[[Qt:Документация 4.3.2/qtextdecoder#toUnicode | toUnicode]]''' ( const char * ''chars'', int ''len'' )<br />
*void '''[[Qt:Документация 4.3.2/qtextdecoder#toUnicode-2 | toUnicode]]''' ( QString * ''target'', const char * ''chars'', int ''len'' )<br />
*QString '''[[Qt:Документация 4.3.2/qtextdecoder#toUnicode-3 | toUnicode]]''' ( const QByteArray &amp; ''ba'' )<br />
<div id="details"></div><hr /><br />
==Подробное описание==<br />
<br />
The QTextDecoder class provides a state-based decoder.<br />
<br />
A text decoder converts text from an encoded text format into Unicode using a specific codec.<br />
<br />
The decoder converts text in this format into Unicode, remembering any state that is required between calls.<br />
<br />
See also [[Qt:Документация 4.3.2/qtextcodec#makeDecoder | QTextCodec::makeDecoder]]() and [[Qt:Документация 4.3.2/qtextencoder | QTextEncoder]].<br />
<hr /><br />
==Описание функций-членов==<br />
<br />
===<div id="QTextDecoder"></div>QTextDecoder::QTextDecoder ( const [[Qt:Документация 4.3.2/qtextcodec | QTextCodec]] * ''codec'' )===<br />
<br />
Constructs a text decoder for the given ''codec''.<br />
<br />
===<div id="dtor.QTextDecoder"></div>QTextDecoder::~QTextDecoder ()===<br />
<br />
Destroys the decoder.<br />
<br />
===<div id="toUnicode"></div>[[Qt:Документация 4.3.2/qstring | QString]] QTextDecoder::toUnicode ( const char * ''chars'', int ''len'' )===<br />
<br />
Converts the first ''len'' bytes in ''chars'' to Unicode, returning the result.<br />
<br />
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.<br />
<br />
===<div id="toUnicode-2"></div>void QTextDecoder::toUnicode ( [[Qt:Документация 4.3.2/qstring | QString]] * ''target'', const char * ''chars'', int ''len'' )===<br />
<br />
Эта перегруженная функция предоставлена для удобства.<br />
<br />
The converted string is returned in ''target''.<br />
<br />
===<div id="toUnicode-3"></div>[[Qt:Документация 4.3.2/qstring | QString]] QTextDecoder::toUnicode ( const [[Qt:Документация 4.3.2/qbytearray | QByteArray]] &amp; ''ba'' )===<br />
<br />
Эта перегруженная функция предоставлена для удобства.<br />
<br />
Converts the bytes in the byte array specified by ''ba'' to Unicode and returns the result.<br />
<br />
<br />
{{Qt4.3.2_footer}}</div>Root