1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/codecs/qgb18030codec.cpp:34 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>QGb18030Codec Class</title>
|
---|
7 | <style type="text/css"><!--
|
---|
8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
9 | a:link { color: #004faf; text-decoration: none }
|
---|
10 | a:visited { color: #672967; text-decoration: none }
|
---|
11 | body { background: #ffffff; color: black; }
|
---|
12 | --></style>
|
---|
13 | </head>
|
---|
14 | <body>
|
---|
15 |
|
---|
16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
17 | <tr bgcolor="#E5E5E5">
|
---|
18 | <td valign=center>
|
---|
19 | <a href="index.html">
|
---|
20 | <font color="#004faf">Home</font></a>
|
---|
21 | | <a href="classes.html">
|
---|
22 | <font color="#004faf">All Classes</font></a>
|
---|
23 | | <a href="mainclasses.html">
|
---|
24 | <font color="#004faf">Main Classes</font></a>
|
---|
25 | | <a href="annotated.html">
|
---|
26 | <font color="#004faf">Annotated</font></a>
|
---|
27 | | <a href="groups.html">
|
---|
28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
29 | | <a href="functions.html">
|
---|
30 | <font color="#004faf">Functions</font></a>
|
---|
31 | </td>
|
---|
32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QGb18030Codec Class Reference</h1>
|
---|
33 |
|
---|
34 | <p>The QGb18030Codec class provides conversion to and from the Chinese
|
---|
35 | GB18030/GBK/GB2312 encoding.
|
---|
36 | <a href="#details">More...</a>
|
---|
37 | <p>All the functions in this class are <a href="threads.html#reentrant">reentrant</a> when Qt is built with thread support.</p>
|
---|
38 | <p><tt>#include <<a href="qgb18030codec-h.html">qgb18030codec.h</a>></tt>
|
---|
39 | <p>Inherits <a href="qtextcodec.html">QTextCodec</a>.
|
---|
40 | <p>Inherited by <a href="qgbkcodec.html">QGbkCodec</a> and <a href="qgb2312codec.html">QGb2312Codec</a>.
|
---|
41 | <p><a href="qgb18030codec-members.html">List of all member functions.</a>
|
---|
42 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
43 |
|
---|
44 |
|
---|
45 |
|
---|
46 | <p> The QGb18030Codec class provides conversion to and from the Chinese
|
---|
47 | GB18030/GBK/GB2312 encoding.
|
---|
48 | <p>
|
---|
49 | <p> GBK, formally the Chinese Internal Code Specification, is a commonly
|
---|
50 | used extension of GB 2312-80. Microsoft Windows uses it under the
|
---|
51 | name codepage 936.
|
---|
52 | <p> GBK has been superceded by the new Chinese national standard
|
---|
53 | GB 18030-2000, which added a 4-byte encoding while remaining
|
---|
54 | compatible with GB2312 and GBK. The new GB 18030-2000 may be described
|
---|
55 | as a special encoding of Unicode 3.x and ISO-10646-1.
|
---|
56 | <p> Special thanks to charset gurus Markus Scherer (IBM),
|
---|
57 | Dirk Meyer (Adobe Systems) and Ken Lunde (Adobe Systems) for publishing
|
---|
58 | an excellent GB 18030-2000 summary and specification on the Internet.
|
---|
59 | Some must-read documents are:
|
---|
60 | <ul>
|
---|
61 | <li>
|
---|
62 | <a href="ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/pdf/GB18030_Summary.pdf">ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/pdf/GB18030_Summary.pdf</a>
|
---|
63 | <li> <a href="http://oss.software.ibm.com/cvs/icu/~checkout~/charset/source/gb18030/gb18030.html">http://oss.software.ibm.com/cvs/icu/~checkout~/charset/source/gb18030/gb18030.html</a>
|
---|
64 | <li>
|
---|
65 | <a href="http://oss.software.ibm.com/cvs/icu/~checkout~/charset/data/xml/gb-18030-2000.xml">http://oss.software.ibm.com/cvs/icu/~checkout~/charset/data/xml/gb-18030-2000.xml</a>
|
---|
66 | </ul>
|
---|
67 | <p> The GBK codec was contributed to Qt by
|
---|
68 | Justin Yu <justiny@turbolinux.com.cn> and
|
---|
69 | Sean Chen <seanc@turbolinux.com.cn>. They may also be reached at
|
---|
70 | Yu Mingjian <yumj@sun.ihep.ac.cn>, <yumingjian@china.com>
|
---|
71 | Chen Xiangyang <chenxy@sun.ihep.ac.cn>
|
---|
72 | <p> The GB18030 codec Qt functions were contributed to Qt by
|
---|
73 | James Su <suzhe@gnuchina.org>, <suzhe@turbolinux.com.cn>
|
---|
74 | who pioneered much of GB18030 development on GNU/Linux systems.
|
---|
75 | <p> The GB18030 codec was contributed to Qt by
|
---|
76 | Anthony Fok <anthony@thizlinux.com>, <foka@debian.org>
|
---|
77 | using a Perl script to generate C++ tables from gb-18030-2000.xml
|
---|
78 | while merging contributions from James Su, Justin Yu and Sean Chen.
|
---|
79 | A copy of the source Perl script is available at:
|
---|
80 | <p> <a href="http://people.debian.org/~foka/gb18030/gen-qgb18030codec.pl">http://people.debian.org/~foka/gb18030/gen-qgb18030codec.pl</a>
|
---|
81 | <p> The copyright notice for their code follows:
|
---|
82 | <p>
|
---|
83 | <p> Copyright (C) 2000 TurboLinux, Inc. Written by Justin Yu and Sean Chen.
|
---|
84 | Copyright (C) 2001, 2002 Turbolinux, Inc. Written by James Su.
|
---|
85 | Copyright (C) 2001, 2002 ThizLinux Laboratory Ltd. Written by Anthony Fok.
|
---|
86 | <p> Redistribution and use in source and binary forms, with or without
|
---|
87 | modification, are permitted provided that the following conditions
|
---|
88 | are met:
|
---|
89 | <ol type=1>
|
---|
90 | <li> Redistributions of source code must retain the above copyright
|
---|
91 | notice, this list of conditions and the following disclaimer.
|
---|
92 | <li> Redistributions in binary form must reproduce the above copyright
|
---|
93 | notice, this list of conditions and the following disclaimer in the
|
---|
94 | documentation and/or other materials provided with the distribution.
|
---|
95 | </ol>
|
---|
96 | <p> THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
---|
97 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
---|
98 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
---|
99 | ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
---|
100 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
---|
101 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
---|
102 | OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
---|
103 | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
---|
104 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
---|
105 | OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
---|
106 | SUCH DAMAGE.
|
---|
107 | <p>See also <a href="i18n.html">Internationalization with Qt</a>.
|
---|
108 |
|
---|
109 | <!-- eof -->
|
---|
110 | <hr><p>
|
---|
111 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
112 | Copyright © 1995-2007
|
---|
113 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
114 | <table width=100% cellspacing=0 border=0><tr>
|
---|
115 | <td>Copyright © 2007
|
---|
116 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
117 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
118 | </table></div></address></body>
|
---|
119 | </html>
|
---|