File: qtextcodec.html

package info (click to toggle)
qt-embedded 2.3.2-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 68,608 kB
  • ctags: 45,998
  • sloc: cpp: 276,654; ansic: 71,987; makefile: 29,074; sh: 12,305; yacc: 2,465; python: 1,863; perl: 481; lex: 480; xml: 68; lisp: 15
file content (324 lines) | stat: -rw-r--r-- 22,539 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Qt Toolkit - QTextCodec Class</title><style type="text/css"><!--
h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }
--></style>
</head><body bgcolor="#ffffff">

<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>

<h1 align=center>QTextCodec Class Reference</h1><br clear="all">
<p>
Provides conversion between text encodings.
<a href="#details">More...</a>
<p>
<code>#include &lt;<a href="qtextcodec-h.html">qtextcodec.h</a>&gt;</code>
<p>Inherited by <a href="qeucjpcodec.html">QEucJpCodec</a>, <a href="qeuckrcodec.html">QEucKrCodec</a>, <a href="qgbkcodec.html">QGbkCodec</a>, <a href="qjiscodec.html">QJisCodec</a>, <a href="qsjiscodec.html">QSjisCodec</a> and <a href="qtsciicodec.html">QTsciiCodec</a>.
<p><a href="qtextcodec-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn">virtual<a href="#de8aba"><b>~QTextCodec</b></a>()</div>
<li><div class="fn">virtualconstchar*<a href="#150a9d"><b>name</b></a>()const</div>
<li><div class="fn">virtualint<a href="#d242f2"><b>mibEnum</b></a>()const</div>
<li><div class="fn">virtualQTextDecoder*<a href="#01e228"><b>makeDecoder</b></a>()const</div>
<li><div class="fn">virtualQTextEncoder*<a href="#545c5c"><b>makeEncoder</b></a>()const</div>
<li><div class="fn">virtualQString<a href="#32c727"><b>toUnicode</b></a>(constchar*chars, intlen)const</div>
<li><div class="fn">virtualQCString<a href="#ec806f"><b>fromUnicode</b></a>(constQString&amp;uc, int&amp;lenInOut)const</div>
<li><div class="fn">QCString<a href="#d25b44"><b>fromUnicode</b></a>(constQString&amp;uc)const</div>
<li><div class="fn">QString<a href="#01113b"><b>toUnicode</b></a>(constQByteArray&amp;, intlen)const</div>
<li><div class="fn">QString<a href="#0cb396"><b>toUnicode</b></a>(constQByteArray&amp;)const</div>
<li><div class="fn">QString<a href="#db2a89"><b>toUnicode</b></a>(constchar*chars)const</div>
<li><div class="fn">virtualbool<a href="#251f18"><b>canEncode</b></a>(QChar)const</div>
<li><div class="fn">virtualbool<a href="#846e2e"><b>canEncode</b></a>(constQString&amp;)const</div>
<li><div class="fn">virtualint<a href="#fc6ed5"><b>heuristicContentMatch</b></a>(constchar*chars, intlen)const</div>
<li><div class="fn">virtualint<a href="#1fb71a"><b>heuristicNameMatch</b></a>(constchar*hint)const</div>
</ul>
<h2>Static Public Members</h2>
<ul>
<li><div class="fn">QTextCodec*<a href="#f4b1ee"><b>loadCharmap</b></a>(QIODevice*)</div>
<li><div class="fn">QTextCodec*<a href="#2440cd"><b>loadCharmapFile</b></a>(QStringfilename)</div>
<li><div class="fn">QTextCodec*<a href="#bbd4d9"><b>codecForMib</b></a>(intmib)</div>
<li><div class="fn">QTextCodec*<a href="#c96cb7"><b>codecForName</b></a>(constchar*hint, intaccuracy=0)</div>
<li><div class="fn">QTextCodec*<a href="#e714b9"><b>codecForContent</b></a>(constchar*chars, intlen)</div>
<li><div class="fn">QTextCodec*<a href="#1fc5a7"><b>codecForIndex</b></a>(inti)</div>
<li><div class="fn">QTextCodec*<a href="#615e15"><b>codecForLocale</b></a>()</div>
<li><div class="fn">void<a href="#e718cd"><b>deleteAllCodecs</b></a>()</div>
<li><div class="fn">constchar*<a href="#14edc2"><b>locale</b></a>()</div>
</ul>
<h2>Protected Members</h2>
<ul>
<li><div class="fn"><a href="#cb50b0"><b>QTextCodec</b></a>()</div>
</ul>
<h2>Static Protected Members</h2>
<ul>
<li><div class="fn">int<a href="#67b8c9"><b>simpleHeuristicNameMatch</b></a>(constchar*name, constchar*hint)</div>
</ul>
<hr><h2><a name="details"></a>Detailed Description</h2>
Provides conversion between text encodings.
<p>
By making objects of subclasses of QTextCodec, support for
new text encodings can be added to Qt.
<p>The abstract virtual functions describe the encoder to the
system and the coder is used as required in the different
text file formats supported <a href="qtextstream.html">QTextStream</a> and, under X11 for the
locale-specific character input and output (under Windows NT
codecs are not needed for GUI I/O since the system works
with Unicode already, and Windows 95/98 has built-in convertors
for the 8-bit local encoding).
<p>More recently created QTextCodec objects take precedence
over earlier ones.
<p>To add support for another 8-bit encoding to Qt, make a subclass
or QTextCodec and implement at least the following methods:
<dl>
<dt><code>const</code> char* <a href="#150a9d">name</a>() const
<dd>Return the official name for the encoding.
<dt><code>int</code> <a href="#d242f2">mibEnum</a>() const
<dd>Return the MIB enum for the encoding if it is listed in the
<a href=ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets>
IANA character-sets encoding file</a>.
</dl>
If the encoding is multi-byte then it will have "state"; that is,
the interpretation of some bytes will be dependent on some preceding
bytes.  For such an encoding, you will need to implement
<dl>
<dt> <code><a href="qtextdecoder.html">QTextDecoder</a>*</code> <a href="#01e228">makeDecoder</a>() const
<dd>Return a QTextDecoder that remembers incomplete multibyte
sequence prefixes or other required state.
</dl>
If the encoding does <em>not</em> require state, you should implement:
<dl>
<dt> <code><a href="qstring.html">QString</a></code> <a href="#32c727">toUnicode</a>(const char* chars, int len) const
<dd>Converts <em>len</em> characters from <em>chars</em> to Unicode.
</dl>
The base QTextCodec class has default implementations of the above
two functions, <i>but they are mutually recursive</i>, so you must
re-implement at least one of them, or both for improved efficiency.
<p>For conversion from Unicode to 8-bit encodings, it is rarely necessary
to maintain state.  However, two functions similar to the two above
are used for encoding:
<dl>
<dt> <code><a href="qtextencoder.html">QTextEncoder</a>*</code> <a href="#545c5c">makeEncoder</a>() const
<dd>Return a QTextDecoder.
<dt> <code><a href="qcstring.html">QCString</a></code> <a href="#ec806f">fromUnicode</a>(const QString& uc, int& lenInOut ) const;
<dd>Converts <em>lenInOut</em> characters (of type <a href="qchar.html">QChar</a>) from the start
of the string <em>uc,</em> returning a QCString result, and also returning
the <a href="qcstring.html#5a756d">length</a>
of the result in lenInOut.
</dl>
Again, these are mutually recursive so only one needs to be implemented,
or both if better efficiency is possible.
<p>Finally, you must implement:
<dl>
<dt> <code>int</code> <a href="#fc6ed5">heuristicContentMatch</a>(const char* chars, int len) const
<dd>Gives a value indicating how likely it is that <em>len</em> characters
from <em>chars</em> are in the encoding.
</dl>
A good model for this function is the
QWindowsLocalCodec::heuristicContentMatch function found in the Qt sources.
<p>A QTextCodec subclass might have improved performance if you also
re-implement:
<dl>
<dt> <code>bool</code> <a href="#251f18">canEncode</a>( QChar ) const
<dd>Test if a Unicode character can be encoded.
<dt> <code>bool</code> canEncode( const QString& ) const
<dd>Test if a string of Unicode characters can be encoded.
<dt> <code>int</code> <a href="#1fb71a">heuristicNameMatch</a>(const char* hint) const
<dd>Test if a possibly non-standard name is referring to the codec.
</dl>

<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a name="cb50b0"></a>QTextCodec::QTextCodec() <code>[protected]</code></h3>
<p>Constructs a QTextCodec, making it of highest precedence.
The QTextCodec should always be constructed on the heap
(with new), and once constructed it becomes the responsibility
of Qt to delete it (which is done at <a href="qapplication.html">QApplication</a> destruction).
<h3 class="fn"><a name="de8aba"></a>QTextCodec::~QTextCodec() <code>[virtual]</code></h3>
<p>Destructs the QTextCodec.  Note that you should not delete
codecs yourself - once created they become the responsibility
of Qt to delete.
<h3 class="fn">bool<a name="251f18"></a>QTextCodec::canEncode(<a href="qchar.html">QChar</a>ch)const <code>[virtual]</code></h3>
<p>Returns TRUE if the unicode character <em>ch</em> can be fully encoded
with this codec.  The default implementation tests if the result of
<a href="#32c727">toUnicode</a>(<a href="#ec806f">fromUnicode</a>(ch)) is the original <em>ch.</em> Subclasses may be
able to improve the efficiency.
<h3 class="fn">bool<a name="846e2e"></a>QTextCodec::canEncode(const<a href="qstring.html">QString</a>&amp;s)const <code>[virtual]</code></h3>
<p>Returns TRUE if the unicode string <em>s</em> can be fully encoded
with this codec.  The default implementation tests if the result of
<a href="#32c727">toUnicode</a>(<a href="#ec806f">fromUnicode</a>(s)) is the original <em>s.</em> Subclasses may be
able to improve the efficiency.
<h3 class="fn">QTextCodec*<a name="e714b9"></a>QTextCodec::codecForContent(constchar*chars, intlen) <code>[static]</code></h3>
<p>Searches all installed QTextCodec objects, returning the one
which most recognizes the given content.  May return 0.
<p>Note that this is often a poor choice, since character
encodings often use most of the available character sequences,
and so only by linguistic analysis could a true match be made.
<p>See also  <a href="#fc6ed5">heuristicContentMatch</a>().
<h3 class="fn">QTextCodec*<a name="1fc5a7"></a>QTextCodec::codecForIndex(inti) <code>[static]</code></h3>
<p>Returns the QTextCodec <em>i</em> places from the more recently
inserted, or NULL if there is no such QTextCodec.  Thus,
codecForIndex(0) returns the most recently created QTextCodec.
<h3 class="fn">QTextCodec*<a name="615e15"></a>QTextCodec::codecForLocale() <code>[static]</code></h3>
<p>Returns a pointer to the codec most suitable for this locale.
<h3 class="fn">QTextCodec*<a name="bbd4d9"></a>QTextCodec::codecForMib(intmib) <code>[static]</code></h3>
<p>Returns the QTextCodec which matches the
<a href="#d242f2">MIBenum</a> <em>mib.</em>
<h3 class="fn">QTextCodec*<a name="c96cb7"></a>QTextCodec::codecForName(constchar*hint, intaccuracy=0) <code>[static]</code></h3>
<p>Searches all installed QTextCodec objects, returning the one
which best matches given name.  Returns NULL if no codec has
a match closeness above <em>accuracy.</em>
<p>See also  <a href="#1fb71a">heuristicNameMatch</a>().
<h3 class="fn">void<a name="e718cd"></a>QTextCodec::deleteAllCodecs() <code>[static]</code></h3>
<p>Deletes all the created codecs.<p><b>Warning:</b> Do not call this function.
<p><a href="qapplication.html">QApplication</a> calls this just before exiting, to delete any
QTextCodec objects that may be lying around.  Since various other
classes hold pointers to QTextCodec objects, it is not safe to call
this function earlier.
<p>If you are using the utility classes (like <a href="qstring.html">QString</a>) but not using
QApplication, calling this function at the very end of your
application can be helpful to chasing down memory leaks, as
QTextCodec objects will not show up.
<h3 class="fn"><a href="qcstring.html">QCString</a><a name="ec806f"></a>QTextCodec::fromUnicode(const<a href="qstring.html">QString</a>&amp;uc, int&amp;lenInOut)const <code>[virtual]</code></h3>
<p>Subclasses of QTextCodec must reimplement either this function or
<a href="#545c5c">makeEncoder</a>().  It converts the first <em>lenInOut</em> characters of <em>uc</em> from Unicode to the encoding of the subclass.  If <em>lenInOut</em>
is negative or too large, the length of <em>uc</em> is used instead.
<p>The value returned is the property of the caller, which is
responsible for deleting it with "delete []".  The length of the
resulting Unicode character sequence is returned in <em>lenInOut.</em>
<p>The default implementation makes an encoder with makeEncoder() and
converts the input with that.  Note that the default makeEncoder()
implementation makes an encoder that simply calls
this function, hence subclasses <em>must</em> reimplement one function or
the other to avoid infinite recursion.
<p>Reimplemented in <a href="qgbkcodec.html#f02112">QGbkCodec</a>, <a href="qeuckrcodec.html#a52c4f">QEucKrCodec</a>, <a href="qtsciicodec.html#13d64e">QTsciiCodec</a>, <a href="qjiscodec.html#970f49">QJisCodec</a>, <a href="qsjiscodec.html#6ff2cf">QSjisCodec</a> and <a href="qeucjpcodec.html#7e855d">QEucJpCodec</a>.
<h3 class="fn"><a href="qcstring.html">QCString</a><a name="d25b44"></a>QTextCodec::fromUnicode(const<a href="qstring.html">QString</a>&amp;uc)const</h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<h3 class="fn">int<a name="fc6ed5"></a>QTextCodec::heuristicContentMatch(constchar*chars, intlen)const <code>[virtual]</code></h3>
<p>Subclasses of QTextCodec must reimplement this function.  It examines
the first <em>len</em> bytes of <em>chars</em> and returns a value indicating how
likely it is that the string is a prefix of text encoded in the
encoding of the subclass.  Any negative return value indicates that the text
is detectably not in the encoding (eg. it contains undefined characters).
A return value of 0 indicates that the text should be decoded with this
codec rather than as ASCII, but there
is no particular evidence.  The value should range up to <em>len.</em>  Thus,
most decoders will return -1, 0, or -<em>len.</em>
<p>The characters are not null terminated.
<p>See also  <a href="#e714b9">codecForContent</a>().
<p>Reimplemented in <a href="qeucjpcodec.html#40ebea">QEucJpCodec</a>, <a href="qtsciicodec.html#a74aef">QTsciiCodec</a>, <a href="qeuckrcodec.html#0b1e97">QEucKrCodec</a>, <a href="qgbkcodec.html#fa7353">QGbkCodec</a>, <a href="qjiscodec.html#678d8c">QJisCodec</a> and <a href="qsjiscodec.html#695cdc">QSjisCodec</a>.
<h3 class="fn">int<a name="1fb71a"></a>QTextCodec::heuristicNameMatch(constchar*hint)const <code>[virtual]</code></h3>
<p>Returns a value indicating how likely this decoder is
for decoding some format that has the given name.
<p>A good match returns a positive number around
the length of the string.  A bad match is negative.
<p>The default implementation calls <a href="#67b8c9">simpleHeuristicNameMatch</a>()
with the name of the codec.
<p>Reimplemented in <a href="qgbkcodec.html#d81d90">QGbkCodec</a>, <a href="qjiscodec.html#251a11">QJisCodec</a>, <a href="qtsciicodec.html#fdf435">QTsciiCodec</a>, <a href="qeucjpcodec.html#9693b5">QEucJpCodec</a>, <a href="qsjiscodec.html#988e8c">QSjisCodec</a> and <a href="qeuckrcodec.html#2325e7">QEucKrCodec</a>.
<h3 class="fn">QTextCodec*<a name="f4b1ee"></a>QTextCodec::loadCharmap(<a href="qiodevice.html">QIODevice</a>*iod) <code>[static]</code></h3>
<p>Reads a POSIX2 charmap definition from <em>iod.</em>
The parser recognizes the following lines:
<pre>
   &lt;code_set_name&gt; <i>name</i>
   &lt;escape_char&gt; <i>character</i>
   % alias <i>alias</i>
   CHARMAP
   &lt;<i>token</i>&gt; /x<i>hexbyte</i> &lt;U<i>unicode</i>&gt; ...
   &lt;<i>token</i>&gt; /d<i>decbyte</i> &lt;U<i>unicode</i>&gt; ...
   &lt;<i>token</i>&gt; /<i>octbyte</i> &lt;U<i>unicode</i>&gt; ...
   &lt;<i>token</i>&gt; /<i>any</i>/<i>any</i>... &lt;U<i>unicode</i>&gt; ...
   END CHARMAP
</pre>
<p>The resulting QTextCodec is returned (and also added to the
global list of codecs).  The <a href="#150a9d">name</a>() of the result is taken
from the code_set_name.
<p>Note that a codec constructed in this way uses much more memory
and is slower than a hand-written QTextCodec subclass, since
tables in code are in memory shared by all applications simultaneously
using Qt.
<p>See also  <a href="#2440cd">loadCharmapFile</a>().
<h3 class="fn">QTextCodec*<a name="2440cd"></a>QTextCodec::loadCharmapFile(<a href="qstring.html">QString</a>filename) <code>[static]</code></h3>
<p>A convenience function for <a href="#f4b1ee">loadCharmap</a>().
<h3 class="fn">constchar*<a name="14edc2"></a>QTextCodec::locale() <code>[static]</code></h3>
<p>Returns a string representing the current language.
<h3 class="fn"><a href="qtextdecoder.html">QTextDecoder</a>*<a name="01e228"></a>QTextCodec::makeDecoder()const <code>[virtual]</code></h3>
<p>Creates a <a href="qtextdecoder.html">QTextDecoder</a> which stores enough state to decode chunks
of char* data to create chunks of Unicode data.  The default implementation
creates a stateless decoder, which is sufficient for only the simplest
encodings where each byte corresponds to exactly one Unicode character.
<p>The caller is responsible for deleting the returned object.
<p>Reimplemented in <a href="qeuckrcodec.html#b0a3bd">QEucKrCodec</a>, <a href="qjiscodec.html#55a1cc">QJisCodec</a>, <a href="qeucjpcodec.html#e597d8">QEucJpCodec</a>, <a href="qgbkcodec.html#47936f">QGbkCodec</a> and <a href="qsjiscodec.html#3635a0">QSjisCodec</a>.
<h3 class="fn"><a href="qtextencoder.html">QTextEncoder</a>*<a name="545c5c"></a>QTextCodec::makeEncoder()const <code>[virtual]</code></h3>
<p>Creates a <a href="qtextencoder.html">QTextEncoder</a> which stores enough state to encode chunks
of Unicode data as char* data.  The default implementation
creates a stateless encoder, which is sufficient for only the simplest
encodings where each Unicode character corresponds to exactly one char.
<p>The caller is responsible for deleting the returned object.
<h3 class="fn">int<a name="d242f2"></a>QTextCodec::mibEnum()const <code>[virtual]</code></h3>
<p>Subclasses of QTextCodec must reimplement this function.  It returns the
MIBenum (see
<a href="ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets">
the IANA character-sets encoding file</a> for more information).
It is important that each QTextCodec subclass return the correct unique
value for this function.
<h3 class="fn">constchar*<a name="150a9d"></a>QTextCodec::name()const <code>[virtual]</code></h3>
<p>Subclasses of QTextCodec must reimplement this function.  It returns
the name of the encoding supported by the subclass.  When choosing
a name for an encoding, consider these points:
<ul>
<li>On X11, <a href="#1fb71a">heuristicNameMatch</a>( const char * hint )
is used to test if a the QTextCodec
can convert between Unicode and the encoding of a font
with encoding <em>hint,</em> such as "iso8859-1" for Latin-1 fonts,
"koi8-r" for Russian KOI8 fonts.
The default algorithm of heuristicNameMatch() uses name().
<li>Some applications may use this function to present
encodings to the end user.
</ul>
<p>Reimplemented in <a href="qsjiscodec.html#fa1a4b">QSjisCodec</a>, <a href="qgbkcodec.html#192e8d">QGbkCodec</a>, <a href="qtsciicodec.html#2378f8">QTsciiCodec</a>, <a href="qeucjpcodec.html#960100">QEucJpCodec</a>, <a href="qeuckrcodec.html#f42d67">QEucKrCodec</a> and <a href="qjiscodec.html#a9ae73">QJisCodec</a>.
<h3 class="fn">int<a name="67b8c9"></a>QTextCodec::simpleHeuristicNameMatch(constchar*name, constchar*hint) <code>[staticprotected]</code></h3>
<p>A simple utility function for <a href="#1fb71a">heuristicNameMatch</a>() - it
does some very minor character-skipping
so that almost-exact matches score high.
<h3 class="fn"><a href="qstring.html">QString</a><a name="32c727"></a>QTextCodec::toUnicode(constchar*chars, intlen)const <code>[virtual]</code></h3>
<p>Subclasses of QTextCodec must reimplement this function or
<a href="#01e228">makeDecoder</a>().  It converts the first <em>len</em> characters of <em>chars</em>
to Unicode.
<p>The default implementation makes a decoder with makeDecoder() and
converts the input with that.  Note that the default makeDecoder()
implementation makes a decoder that simply calls
this function, hence subclasses <em>must</em> reimplement one function or
the other to avoid infinite recursion.
<p>Reimplemented in <a href="qtsciicodec.html#d9b381">QTsciiCodec</a>, <a href="qeuckrcodec.html#ffda71">QEucKrCodec</a>, <a href="qsjiscodec.html#1e94eb">QSjisCodec</a>, <a href="qgbkcodec.html#c1c238">QGbkCodec</a>, <a href="qjiscodec.html#1cb0c8">QJisCodec</a> and <a href="qeucjpcodec.html#b69ae5">QEucJpCodec</a>.
<h3 class="fn"><a href="qstring.html">QString</a><a name="0cb396"></a>QTextCodec::toUnicode(const<a href="qbytearray.html">QByteArray</a>&amp;a)const</h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<h3 class="fn"><a href="qstring.html">QString</a><a name="01113b"></a>QTextCodec::toUnicode(const<a href="qbytearray.html">QByteArray</a>&amp;a, intlen)const</h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<h3 class="fn"><a href="qstring.html">QString</a><a name="db2a89"></a>QTextCodec::toUnicode(constchar*chars)const</h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<hr><p>
Search the documentation, FAQ, qt-interest archive and more (uses
<a href="http://www.trolltech.com">www.trolltech.com</a>):<br>
<form method=post action="http://www.trolltech.com/search.cgi">
<input type=hidden name="version" value="2.3.2"><nobr>
<input size="50" name="search"><input type=submit value="Search">
</nobr></form><hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>,
copyright &copy; 1995-2001
<a href="http://www.trolltech.com">Trolltech</a>, all rights reserved.<p><address><hr><div align="center">
<table width="100%" cellspacing="0" border="0"><tr>
<td>Copyright  2001 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.2</div>
</table></div></address></body></html>