Reference

qjpunicodeconv(3qt)

Implementation support for #include <qjpunicode.h>

NAME

QJpUnicodeConv - Implementation support for

#include <qjpunicode.h>

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)
uint AsciiToUnicode ( uint ascii ) const
uint Jisx0201ToUnicode ( uint jis ) const
uint Jisx0201LatinToUnicode ( uint jis ) const
uint Jisx0201KanaToUnicode ( uint jis ) const
uint Jisx0208ToUnicode ( uint jis ) const
uint Jisx0212ToUnicode ( uint jis ) const
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 UnicodeToAscii ( uint unicode ) const
uint UnicodeToJisx0201 ( uint unicode ) const
uint UnicodeToJisx0201Latin ( uint unicode ) const
uint UnicodeToJisx0201Kana ( uint unicode ) const
uint UnicodeToJisx0208 ( uint unicode ) const
uint UnicodeToJisx0212 ( uint unicode ) const
uint SjisToUnicode ( uint h, uint l ) const (internal)
uint UnicodeToSjis ( uint h, uint l ) const (internal)
uint SjisToUnicode ( uint sjis ) const
uint UnicodeToSjis ( uint unicode ) const

Static Public Members

const QJpUnicodeConv* newConverter ( int rule ) (internal)

Protected Members

QJpUnicodeConv ( int r )

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 <nobr>unicode-0.9, nec-vdc.</nobr> (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:

1

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2

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.

SEE ALSO

http://doc.trolltech.com/qjpunicodeconv.html http://www.trolltech.com/faq/tech.html

COPYRIGHT

Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.

AUTHOR

Generated automatically from the source code.

BUGS

If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports make our job much simpler. Thank you.

In case of content or formattting problems with this manual page, please report them to [email protected]. Please include the name of the manual page (qjpunicodeconv.3qt) and the Qt version (2.3.1).