📄 sjis
字号:
// sjis -- one- or two-byte/wide-character tables
#pragma once
#ifndef _CVT_SJIS_
#ifndef RC_INVOKED
#define _CVT_SJIS_
//
// Name: JIS X 0201 (1976) to Unicode 1.1 Table
// Unicode version: 1.1
// Table version: 0.9
// Table format: Format A
// Date: 8 March 1994
//
// Copyright (c) 1991-1994 Unicode, Inc. All Rights reserved.
//
// This file is provided as-is by Unicode, Inc. (The Unicode Consortium).
// No claims are made as to fitness for any particular purpose. No
// warranties of any kind are expressed or implied. The recipient
// agrees to determine applicability of information provided. If this
// file has been provided on magnetic media by Unicode, Inc., the sole
// remedy for any claim will be exchange of defective media within 90
// days of receipt.
//
// Recipient is granted the right to make copies in any form for
// internal distribution and to freely use the information supplied
// in the creation of products supporting Unicode. Unicode, Inc.
// specifically excludes the right to re-distribute this file directly
// to third parties or other organizations whether for profit or not.
//
// General notes:
//
//
// This table contains one set of mappings from JIS X 0201 into Unicode.
// Note that these data are *possible* mappings only and may not be the
// same as those used by actual products, nor may they be the best suited
// for all uses. For more information on the mappings between various code
// pages incorporating the repertoire of JIS X 0201 and Unicode, consult the
// VENDORS mapping data. Normative information on the mapping between
// JIS X 0201 and Unicode may be found in the Unihan.txt file in the
// latest Unicode Character Database.
//
// If you have carefully considered the fact that the mappings in
// this table are only one possible set of mappings between JIS X 0201 and
// Unicode and have no normative status, but still feel that you
// have located an error in the table that requires fixing, you may
// report any such error to errata@unicode.org.
//
//
// Format: Three tab-separated columns
// Column #1 is the shift JIS code (in hex as 0xXX)
// Column #2 is the Unicode (in hex as 0xXXXX)
// Column #3 the Unicode (ISO 10646) name (follows a comment sign)
//
// The entries are in JIS order
//
//
//
// Name: JIS X 0208 (1990) to Unicode
// Unicode version: 1.1
// Table version: 0.9
// Table format: Format A
// Date: 8 March 1994
//
// Copyright (c) 1991-1994 Unicode, Inc. All Rights reserved.
//
// This file is provided as-is by Unicode, Inc. (The Unicode Consortium).
// No claims are made as to fitness for any particular purpose. No
// warranties of any kind are expressed or implied. The recipient
// agrees to determine applicability of information provided. If this
// file has been provided on magnetic media by Unicode, Inc., the sole
// remedy for any claim will be exchange of defective media within 90
// days of receipt.
//
// Recipient is granted the right to make copies in any form for
// internal distribution and to freely use the information supplied
// in the creation of products supporting Unicode. Unicode, Inc.
// specifically excludes the right to re-distribute this file directly
// to third parties or other organizations whether for profit or not.
//
// General notes:
//
//
// This table contains one set of mappings from JIS X 0208 (1990) into Unicode.
// Note that these data are *possible* mappings only and may not be the
// same as those used by actual products, nor may they be the best suited
// for all uses. For more information on the mappings between various code
// pages incorporating the repertoire of JIS X 0208 (1990) and Unicode, consult the
// VENDORS mapping data. Normative information on the mapping between
// JIS X 0208 (1990) and Unicode may be found in the Unihan.txt file in the
// latest Unicode Character Database.
//
// If you have carefully considered the fact that the mappings in
// this table are only one possible set of mappings between JIS X 0208 (1990)
// and Unicode and have no normative status, but still feel that you
// have located an error in the table that requires fixing, you may
// report any such error to errata@unicode.org.
//
//
// Format: Four tab-separated columns
// Column #1 is the shift-JIS code (in hex)
// Column #2 is the JIS X 0208 code (in hex as 0xXXXX)
// Column #3 is the Unicode (in hex as 0xXXXX)
// Column #4 the Unicode name (follows a comment sign, '#')
// The official names for Unicode characters U+4E00
// to U+9FA5, inclusive, is "CJK UNIFIED IDEOGRAPH-XXXX",
// where XXXX is the code point. Including all these
// names in this file increases its size substantially
// and needlessly. The token "<CJK>" is used for the
// name of these characters. If necessary, it can be
// expanded algorithmically by a parser or editor.
//
// The entries are in JIS X 0208 order
//
// The following algorithms can be used to change the hex form
// of JIS 0208 to other standard forms:
//
// To change hex to EUC form, add 0x8080
// To change hex to kuten form, first subtract 0x2020. Then
// the high and low bytes correspond to the ku and ten of
// the kuten form. For example, 0x2121 -> 0x0101 -> 0101;
// 0x7426 -> 0x5406 -> 8406
//
// The kanji mappings are a normative part of ISO/IEC 10646. The
// non-kanji mappings are provisional, pending definition of
// official mappings by Japanese standards bodies
//
// Any comments or problems, contact <John_Jenkins@taligent.com>
//
//
#include <cvt/xtwo_byte>
#pragma pack(push,_CRT_PACKING)
#pragma warning(push,3)
namespace stdext {
namespace cvt {
template<class _Dummy>
struct _tab_sjis {
enum {
_Nlow = 0x5c,
_Nbytes = 2};
static const unsigned short _Btw[0xa4];
static const unsigned short _Dbvalid[0x1adf];
static const unsigned short _Dbtw[0x1adf];
static const unsigned short _Wvalid[0x1b20];
static const unsigned short _Wtb[0x1b20];
};
template<class _Dummy>
const unsigned short _tab_sjis<_Dummy>::_Btw[0xa4] =
{ /* map single bytes to words */
0x00a5, 0x005d, 0x005e, 0x005f, 0x0060, 0x0061, 0x0062, 0x0063,
0x0064, 0x0065, 0x0066, 0x0067, 0x0068, 0x0069, 0x006a, 0x006b,
0x006c, 0x006d, 0x006e, 0x006f, 0x0070, 0x0071, 0x0072, 0x0073,
0x0074, 0x0075, 0x0076, 0x0077, 0x0078, 0x0079, 0x007a, 0x007b,
0x007c, 0x007d, 0x203e, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xff61, 0xff62, 0xff63,
0xff64, 0xff65, 0xff66, 0xff67, 0xff68, 0xff69, 0xff6a, 0xff6b,
0xff6c, 0xff6d, 0xff6e, 0xff6f, 0xff70, 0xff71, 0xff72, 0xff73,
0xff74, 0xff75, 0xff76, 0xff77, 0xff78, 0xff79, 0xff7a, 0xff7b,
0xff7c, 0xff7d, 0xff7e, 0xff7f, 0xff80, 0xff81, 0xff82, 0xff83,
0xff84, 0xff85, 0xff86, 0xff87, 0xff88, 0xff89, 0xff8a, 0xff8b,
0xff8c, 0xff8d, 0xff8e, 0xff8f, 0xff90, 0xff91, 0xff92, 0xff93,
0xff94, 0xff95, 0xff96, 0xff97, 0xff98, 0xff99, 0xff9a, 0xff9b,
0xff9c, 0xff9d, 0xff9e, 0xff9f, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000};
template<class _Dummy>
const unsigned short _tab_sjis<_Dummy>::_Dbvalid[0x1adf] =
{ /* double bytes that map to words */
0x8140, 0x8141, 0x8142, 0x8143, 0x8144, 0x8145, 0x8146, 0x8147,
0x8148, 0x8149, 0x814a, 0x814b, 0x814c, 0x814d, 0x814e, 0x814f,
0x8150, 0x8151, 0x8152, 0x8153, 0x8154, 0x8155, 0x8156, 0x8157,
0x8158, 0x8159, 0x815a, 0x815b, 0x815c, 0x815d, 0x815e, 0x815f,
0x8160, 0x8161, 0x8162, 0x8163, 0x8164, 0x8165, 0x8166, 0x8167,
0x8168, 0x8169, 0x816a, 0x816b, 0x816c, 0x816d, 0x816e, 0x816f,
0x8170, 0x8171, 0x8172, 0x8173, 0x8174, 0x8175, 0x8176, 0x8177,
0x8178, 0x8179, 0x817a, 0x817b, 0x817c, 0x817d, 0x817e, 0x8180,
0x8181, 0x8182, 0x8183, 0x8184, 0x8185, 0x8186, 0x8187, 0x8188,
0x8189, 0x818a, 0x818b, 0x818c, 0x818d, 0x818e, 0x818f, 0x8190,
0x8191, 0x8192, 0x8193, 0x8194, 0x8195, 0x8196, 0x8197, 0x8198,
0x8199, 0x819a, 0x819b, 0x819c, 0x819d, 0x819e, 0x819f, 0x81a0,
0x81a1, 0x81a2, 0x81a3, 0x81a4, 0x81a5, 0x81a6, 0x81a7, 0x81a8,
0x81a9, 0x81aa, 0x81ab, 0x81ac, 0x81b8, 0x81b9, 0x81ba, 0x81bb,
0x81bc, 0x81bd, 0x81be, 0x81bf, 0x81c8, 0x81c9, 0x81ca, 0x81cb,
0x81cc, 0x81cd, 0x81ce, 0x81da, 0x81db, 0x81dc, 0x81dd, 0x81de,
0x81df, 0x81e0, 0x81e1, 0x81e2, 0x81e3, 0x81e4, 0x81e5, 0x81e6,
0x81e7, 0x81e8, 0x81f0, 0x81f1, 0x81f2, 0x81f3, 0x81f4, 0x81f5,
0x81f6, 0x81f7, 0x81fc, 0x824f, 0x8250, 0x8251, 0x8252, 0x8253,
0x8254, 0x8255, 0x8256, 0x8257, 0x8258, 0x8260, 0x8261, 0x8262,
0x8263, 0x8264, 0x8265, 0x8266, 0x8267, 0x8268, 0x8269, 0x826a,
0x826b, 0x826c, 0x826d, 0x826e, 0x826f, 0x8270, 0x8271, 0x8272,
0x8273, 0x8274, 0x8275, 0x8276, 0x8277, 0x8278, 0x8279, 0x8281,
0x8282, 0x8283, 0x8284, 0x8285, 0x8286, 0x8287, 0x8288, 0x8289,
0x828a, 0x828b, 0x828c, 0x828d, 0x828e, 0x828f, 0x8290, 0x8291,
0x8292, 0x8293, 0x8294, 0x8295, 0x8296, 0x8297, 0x8298, 0x8299,
0x829a, 0x829f, 0x82a0, 0x82a1, 0x82a2, 0x82a3, 0x82a4, 0x82a5,
0x82a6, 0x82a7, 0x82a8, 0x82a9, 0x82aa, 0x82ab, 0x82ac, 0x82ad,
0x82ae, 0x82af, 0x82b0, 0x82b1, 0x82b2, 0x82b3, 0x82b4, 0x82b5,
0x82b6, 0x82b7, 0x82b8, 0x82b9, 0x82ba, 0x82bb, 0x82bc, 0x82bd,
0x82be, 0x82bf, 0x82c0, 0x82c1, 0x82c2, 0x82c3, 0x82c4, 0x82c5,
0x82c6, 0x82c7, 0x82c8, 0x82c9, 0x82ca, 0x82cb, 0x82cc, 0x82cd,
0x82ce, 0x82cf, 0x82d0, 0x82d1, 0x82d2, 0x82d3, 0x82d4, 0x82d5,
0x82d6, 0x82d7, 0x82d8, 0x82d9, 0x82da, 0x82db, 0x82dc, 0x82dd,
0x82de, 0x82df, 0x82e0, 0x82e1, 0x82e2, 0x82e3, 0x82e4, 0x82e5,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -