HomeHome

ClassesAnnotated - TreeFunctionsHomeStructure

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

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:

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:

  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.


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 TrolltechTrademarks
Qt version 2.2.1