source: trunk/doc/html/qjiscodec.html@ 208

Last change on this file since 208 was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 6.3 KB
Line 
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/qjiscodec.cpp:42 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QJisCodec Class</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { 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&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;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&nbsp;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>QJisCodec Class Reference</h1>
33
34<p>The QJisCodec class provides conversion to and from JIS character sets.
35<a href="#details">More...</a>
36<p>All the functions in this class are <a href="threads.html#reentrant">reentrant</a> when Qt is built with thread support.</p>
37<p><tt>#include &lt;<a href="qjiscodec-h.html">qjiscodec.h</a>&gt;</tt>
38<p>Inherits <a href="qtextcodec.html">QTextCodec</a>.
39<p><a href="qjiscodec-members.html">List of all member functions.</a>
40<h2>Public Members</h2>
41<ul>
42<li class=fn>virtual const char * <a href="#mimeName"><b>mimeName</b></a> () const</li>
43</ul>
44<hr><a name="details"></a><h2>Detailed Description</h2>
45
46
47
48<p> The QJisCodec class provides conversion to and from JIS character sets.
49<p> More precisely, the QJisCodec class subclasses <a href="qtextcodec.html">QTextCodec</a> to
50provide support for JIS X 0201 Latin, JIS X 0201 Kana, JIS X 0208
51and JIS X 0212.
52<p> The environment variable UNICODEMAP_JP can be used to fine-tune
53QJisCodec, <a href="qsjiscodec.html">QSjisCodec</a> and <a href="qeucjpcodec.html">QEucJpCodec</a>. The mapping names are as for
54the Japanese XML working group's <a href="http://www.y-adagio.com/public/standards/tr_xml_jpf/toc.htm">XML
55 Japanese Profile</a>, because it names and explains all the
56widely used mappings. Here are brief descriptions, written by
57Serika Kurusugawa:
58<p> <ul>
59<p> <li> "unicode-0.9" or "unicode-0201" for Unicode style. This assumes
60JISX0201 for 0x00-0x7f. (0.9 is a table version of jisx02xx mapping
61used for Uniocde spec version 1.1.)
62<p> <li> "unicode-ascii" This assumes US-ASCII for 0x00-0x7f; some
63chars (JISX0208 0x2140 and JISX0212 0x2237) are different from
64Unicode 1.1 to avoid conflict.
65<p> <li> "open-19970715-0201" ("open-0201" for convenience) or
66"jisx0221-1995" for JISX0221-JISX0201 style. JIS X 0221 is JIS
67version of Unicode, but a few chars (0x5c, 0x7e, 0x2140, 0x216f,
680x2131) are different from Unicode 1.1. This is used when 0x5c is
69treated as YEN SIGN.
70<p> <li> "open-19970715-ascii" ("open-ascii" for convenience) for
71JISX0221-ASCII style. This is used when 0x5c is treated as REVERSE
72SOLIDUS.
73<p> <li> "open-19970715-ms" ("open-ms" for convenience) or "cp932" for
74Microsoft Windows style. Windows Code Page 932. Some chars (0x2140,
750x2141, 0x2142, 0x215d, 0x2171, 0x2172) are different from Unicode
761.1.
77<p> <li> "jdk1.1.7" for Sun's JDK style. Same as Unicode 1.1, except that
78JIS 0x2140 is mapped to UFF3C. Either ASCII or JISX0201 can be used
79for 0x00-0x7f.
80<p> </ul>
81<p> In addition, the extensions "nec-vdc", "ibm-vdc" and "udc" are
82supported.
83<p> For example, if you want to use Unicode style conversion but with
84NEC's extension, set <tt>UNICODEMAP_JP</tt> to
85<nobr><tt>unicode-0.9, nec-vdc</tt>.</nobr> (You will probably
86need to quote that in a shell command.)
87<p> Most of the code here was written by Serika Kurusugawa,
88a.k.a. Junji Takagi, and is included in Qt with the author's
89permission and the grateful thanks of the Trolltech team. Here is
90the copyright statement for that code:
91<p>
92<p> Copyright (C) 1999 Serika Kurusugawa. All rights reserved.
93<p> Redistribution and use in source and binary forms, with or without
94modification, are permitted provided that the following conditions
95are met:
96<ol type=1>
97<li> Redistributions of source code must retain the above copyright
98notice, this list of conditions and the following disclaimer.
99<li> Redistributions in binary form must reproduce the above copyright
100notice, this list of conditions and the following disclaimer in the
101documentation and/or other materials provided with the distribution.
102</ol>
103<p> THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS".
104ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
105IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
106ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
107FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
108DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
109OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
110HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
111LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
112OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
113SUCH DAMAGE.
114<p>See also <a href="i18n.html">Internationalization with Qt</a>.
115
116<hr><h2>Member Function Documentation</h2>
117<h3 class=fn>const char * <a name="mimeName"></a>QJisCodec::mimeName () const<tt> [virtual]</tt>
118</h3>
119Returns the codec's mime name.
120
121<p>Reimplemented from <a href="qtextcodec.html#mimeName">QTextCodec</a>.
122<!-- eof -->
123<hr><p>
124This file is part of the <a href="index.html">Qt toolkit</a>.
125Copyright &copy; 1995-2007
126<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
127<table width=100% cellspacing=0 border=0><tr>
128<td>Copyright &copy; 2007
129<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
130<td align=right><div align=right>Qt 3.3.8</div>
131</table></div></address></body>
132</html>
Note: See TracBrowser for help on using the repository browser.