QJpUnicodeConv Class Reference
The QJpUnicodeConv class provides implementation support for QJisCodec, QSjisCodec, and QEucJpCodec.
More...
#include <qjpunicode.h>
List of all member functions.
Public Members
virtual uint AsciiToUnicode ( uint h, uint l ) const (internal)
uint Jisx0201ToUnicode ( uint h, uint l ) const (internal)
virtual uint Jisx0201LatinToUnicode ( uint h, uint l ) const (internal)
uint Jisx0201KanaToUnicode ( uint h, uint l ) const (internal)
virtual uint Jisx0208ToUnicode ( uint h, uint l ) const (internal)
virtual uint Jisx0212ToUnicode ( uint h, uint l ) const (internal)
-
-
-
-
-
-
virtual uint UnicodeToAscii ( uint h, uint l ) const (internal)
uint UnicodeToJisx0201 ( uint h, uint l ) const (internal)
virtual uint UnicodeToJisx0201Latin ( uint h, uint l ) const (internal)
uint UnicodeToJisx0201Kana ( uint h, uint l ) const (internal)
virtual uint UnicodeToJisx0208 ( uint h, uint l ) const (internal)
virtual uint UnicodeToJisx0212 ( uint h, uint l ) const (internal)
-
-
-
-
-
-
uint SjisToUnicode ( uint h, uint l ) const (internal)
uint UnicodeToSjis ( uint h, uint l ) const (internal)
-
-
Static Public Members
Protected Members
Detailed Description
The QJpUnicodeConv class provides implementation support for QJisCodec, QSjisCodec, and QEucJpCodec.
You should not need to use this class directly. If you do, keep in
mind that the function names will change in Qt 3.0: Every function
name will get a lower-case first letter: Jisx0212ToUnicode becomes
jisx0212ToUnicode, and so on. We apologize for the upheaval.
The environment variable UNICODEMAP_JP
can be used to fine-tune how
QJpUnicodeConv, QEucJpCodec, QJisCodec and QSjisCodec do their work.
The mapping names are as for the Japanese XML working group's
XML Japanese Profile, as it names and explains all the widely
used mappings. Here are brief descriptions, written by Serika
Kurusugawa:
- "unicode-0.9" or "unicode-0201" for Unicode style. This assume
JISX0201 for 0x00-0x7f. (0.9 is a table version of jisx02xx mapping
used for Uniocde spec version 1.1)
- "unicode-ascii" This assume US-ASCII for 0x00-0x7f, and some
chars (JISX0208 0x2140 and JISX0212 0x2237) are different from
Unicode 1.1 to avoid conflict.
- "open-19970715-0201" ("open-0201" for convenience) or
"jisx0221-1995" for JISX0221-JISX0201 style. JIS X 0221 is JIS
version of Unicode, but a few chars (0x5c, 0x7e, 0x2140, 0x216f,
0x2131) are different from Unicode 1.1. This is used when 0x5c is
treated as YEN SIGN.
- "open-19970715-ascii" ("open-ascii" for convenience) for
JISX0221-ASCII style. This is used when 0x5c is treated as REVERSE
SOLIDUS.
- "open-19970715-ms" ("open-ms" for convenience) or "cp932" for
Microsoft Windows style. Windows Code Page 932. Some chars (0x2140,
0x2141, 0x2142, 0x215d, 0x2171, 0x2172) are different from Unicode
1.1.
- "jdk1.1.7" for Sun's JDK style Same as Unicode 1.1, except that
JIS 0x2140 is mapped to UFF3C. Either ASCII or JISX0201 can be used
for 0x00-0x7f.
In addition, QJpUnicodeConv supports some extensions:
"nec-vdc", "ibm-vdc" or "udc".
For example, if you want to use Unicode style conversion, but with
NEC's extension, set UNICODEMAP_JP
to
unicode-0.9, nec-vdc
. (You will probably
need to quote that in the shell command.)
Most of the code here was originally written by Serika Kurusugawa
a.k.a. Junji Takagi, and is includes in Qt with the author's
permission, and the grateful thanks of the Trolltech team. Here is
the copyright statement for that code:
Copyright (c) 1999 Serika Kurusugawa, All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
Member Function Documentation
uint QJpUnicodeConv::AsciiToUnicode ( uint ascii ) const
For internal use only.
uint QJpUnicodeConv::Jisx0201KanaToUnicode ( uint jis ) const
For internal use only.
uint QJpUnicodeConv::Jisx0201LatinToUnicode ( uint jis ) const
For internal use only.
uint QJpUnicodeConv::Jisx0201ToUnicode ( uint jis ) const
For internal use only.
uint QJpUnicodeConv::Jisx0208ToUnicode ( uint jis ) const
For internal use only.
uint QJpUnicodeConv::Jisx0212ToUnicode ( uint jis ) const
For internal use only.
QJpUnicodeConv::QJpUnicodeConv ( int r ) [protected]
For internal use only.
uint QJpUnicodeConv::SjisToUnicode ( uint sjis ) const
For internal use only.
uint QJpUnicodeConv::UnicodeToAscii ( uint unicode ) const
For internal use only.
uint QJpUnicodeConv::UnicodeToJisx0201 ( uint unicode ) const
For internal use only.
uint QJpUnicodeConv::UnicodeToJisx0201Kana ( uint unicode ) const
For internal use only.
uint QJpUnicodeConv::UnicodeToJisx0201Latin ( uint unicode ) const
For internal use only.
uint QJpUnicodeConv::UnicodeToJisx0208 ( uint unicode ) const
For internal use only.
uint QJpUnicodeConv::UnicodeToJisx0212 ( uint unicode ) const
For internal use only.
uint QJpUnicodeConv::UnicodeToSjis ( uint unicode ) const
For internal use only.
uint QJpUnicodeConv::AsciiToUnicode ( uint h, uint l ) const [virtual]
For internal use only.
uint QJpUnicodeConv::Jisx0201KanaToUnicode ( uint h, uint l ) const
For internal use only.
uint QJpUnicodeConv::Jisx0201LatinToUnicode ( uint h, uint l ) const [virtual]
For internal use only.
uint QJpUnicodeConv::Jisx0201ToUnicode ( uint h, uint l ) const
For internal use only.
uint QJpUnicodeConv::Jisx0208ToUnicode ( uint h, uint l ) const [virtual]
For internal use only.
uint QJpUnicodeConv::Jisx0212ToUnicode ( uint h, uint l ) const [virtual]
For internal use only.
uint QJpUnicodeConv::SjisToUnicode ( uint h, uint l ) const
For internal use only.
uint QJpUnicodeConv::UnicodeToAscii ( uint h, uint l ) const [virtual]
For internal use only.
uint QJpUnicodeConv::UnicodeToJisx0201 ( uint h, uint l ) const
For internal use only.
uint QJpUnicodeConv::UnicodeToJisx0201Kana ( uint h, uint l ) const
For internal use only.
uint QJpUnicodeConv::UnicodeToJisx0201Latin ( uint h, uint l ) const [virtual]
For internal use only.
uint QJpUnicodeConv::UnicodeToJisx0208 ( uint h, uint l ) const [virtual]
For internal use only.
uint QJpUnicodeConv::UnicodeToJisx0212 ( uint h, uint l ) const [virtual]
For internal use only.
uint QJpUnicodeConv::UnicodeToSjis ( uint h, uint l ) const
For internal use only.
const QJpUnicodeConv * QJpUnicodeConv::newConverter ( int rule ) [static]
For internal use only.
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit,
copyright © 1995-2000
Trolltech, all rights reserved.
Copyright © 2000 Trolltech | Trademarks
| Qt version 2.2.1
|