QSjisCodec(3qt)
π QSjisCodec π
okay bestie, we're in the qt manual, section 3qt, and today's main character is QSjisCodec β she converts stuff to and from Shift-JIS. that's it, that's the whole job. slay.
β¨ NAME β¨
QSjisCodec β conversion to and from Shift-JIS π¦
πΈ SYNOPSIS πΈ
real talk: all the functions in this class are reentrant when Qt is built with thread support. periodt.
#include <qsjiscodec.h>
she inherits QTextCodec π
π Public Members
virtual const char * mimeName () constQSjisCodec ()~QSjisCodec ()
π DESCRIPTION π
so the QSjisCodec class provides conversion to and from Shift-JIS. that's the vibe.
more precisely (and she IS precise, okay), QSjisCodec subclasses QTextCodec to provide support for Shift-JIS, which is an encoding of JIS X 0201 Latin, JIS X 0201 Kana or JIS X 0208. three for the price of one, we love a multitasker π«Ά
the environment variable UNICODEMAP_JP can be used to fine-tune QJisCodec, QSjisCodec and QEucJpCodec. and no, i'm not gatekeeping β the QJisCodec documentation describes how to use this variable. go read it, iykyk β¨
now for the lore π―οΈ most of the code here was written by Serika Kurusugawa, a.k.a. Junji Takagi, and it's included in Qt with the author's permission and the grateful thanks of the Trolltech team. (grateful thanks!! we stan a credited queen π) here's the copyright statement for the code as it was at the point of contribution β Trolltech's subsequent modifications are covered by the usual copyright for Qt.
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.
and now the part where everyone yells in all caps, but it's the law so we keep every word:
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS". 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.
see also Internationalization with Qt π
π§ MEMBER FUNCTION DOCUMENTATION π§
QSjisCodec::QSjisCodec ()
creates a Shift-JIS codec β¨ quick note though: this is done automatically by the QApplication, so you do not need construct your own. she's already handled, bestie, don't do extra work for no reason π
QSjisCodec::~QSjisCodec ()
destroys the Shift-JIS codec. π rip, she did her job, we thank her for her service.
const char * QSjisCodec::mimeName () const [virtual]
returns the codec's mime name. that's the whole thing. πΈ
reimplemented from QTextCodec.
π¦ SEE ALSO π¦
π COPYRIGHT π
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. see the license file included in the distribution for a complete license statement. π
β AUTHOR β
generated automatically from the source code. (the author is a robot. iconic behaviour honestly π€β¨)
π BUGS π
if you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. good bug reports help us to help you. thank you. (yes!! good bug reports are a love language, fr fr π«Ά)
the definitive Qt documentation is provided in HTML format; it's located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. this man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. so like... it's giving side quest, not the main character energy of the docs π
if you find errors in this manual page, please report them to qt-bugs@trolltech.com. please include the name of the manual page (qsjiscodec.3qt) and the Qt version (3.3.8). include both!! don't make them guess!! π
okay that's the whole page, you're welcome, mwah π this was brought to you by Trolltech AS, dated 2 February 2007, filed under QSjisCodec(3qt) β go forth and encode responsibly, bestie π¦πΈπ
π¦ where this page comes from
- fedora 43: qt3-devel-docs 3.3.8b-102.fc43 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- fedora 44: qt3-devel-docs 3.3.8b-103.fc44 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms