📄 jis
字号:
// jis -- one- or two-byte/wide-character tables
#pragma once
#ifndef _CVT_JIS_
#ifndef RC_INVOKED
#define _CVT_JIS_
//
// 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_jis {
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_jis<_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_jis<_Dummy>::_Dbvalid[0x1adf] =
{ /* double bytes that map to words */
0x2121, 0x2122, 0x2123, 0x2124, 0x2125, 0x2126, 0x2127, 0x2128,
0x2129, 0x212a, 0x212b, 0x212c, 0x212d, 0x212e, 0x212f, 0x2130,
0x2131, 0x2132, 0x2133, 0x2134, 0x2135, 0x2136, 0x2137, 0x2138,
0x2139, 0x213a, 0x213b, 0x213c, 0x213d, 0x213e, 0x213f, 0x2140,
0x2141, 0x2142, 0x2143, 0x2144, 0x2145, 0x2146, 0x2147, 0x2148,
0x2149, 0x214a, 0x214b, 0x214c, 0x214d, 0x214e, 0x214f, 0x2150,
0x2151, 0x2152, 0x2153, 0x2154, 0x2155, 0x2156, 0x2157, 0x2158,
0x2159, 0x215a, 0x215b, 0x215c, 0x215d, 0x215e, 0x215f, 0x2160,
0x2161, 0x2162, 0x2163, 0x2164, 0x2165, 0x2166, 0x2167, 0x2168,
0x2169, 0x216a, 0x216b, 0x216c, 0x216d, 0x216e, 0x216f, 0x2170,
0x2171, 0x2172, 0x2173, 0x2174, 0x2175, 0x2176, 0x2177, 0x2178,
0x2179, 0x217a, 0x217b, 0x217c, 0x217d, 0x217e, 0x2221, 0x2222,
0x2223, 0x2224, 0x2225, 0x2226, 0x2227, 0x2228, 0x2229, 0x222a,
0x222b, 0x222c, 0x222d, 0x222e, 0x223a, 0x223b, 0x223c, 0x223d,
0x223e, 0x223f, 0x2240, 0x2241, 0x224a, 0x224b, 0x224c, 0x224d,
0x224e, 0x224f, 0x2250, 0x225c, 0x225d, 0x225e, 0x225f, 0x2260,
0x2261, 0x2262, 0x2263, 0x2264, 0x2265, 0x2266, 0x2267, 0x2268,
0x2269, 0x226a, 0x2272, 0x2273, 0x2274, 0x2275, 0x2276, 0x2277,
0x2278, 0x2279, 0x227e, 0x2330, 0x2331, 0x2332, 0x2333, 0x2334,
0x2335, 0x2336, 0x2337, 0x2338, 0x2339, 0x2341, 0x2342, 0x2343,
0x2344, 0x2345, 0x2346, 0x2347, 0x2348, 0x2349, 0x234a, 0x234b,
0x234c, 0x234d, 0x234e, 0x234f, 0x2350, 0x2351, 0x2352, 0x2353,
0x2354, 0x2355, 0x2356, 0x2357, 0x2358, 0x2359, 0x235a, 0x2361,
0x2362, 0x2363, 0x2364, 0x2365, 0x2366, 0x2367, 0x2368, 0x2369,
0x236a, 0x236b, 0x236c, 0x236d, 0x236e, 0x236f, 0x2370, 0x2371,
0x2372, 0x2373, 0x2374, 0x2375, 0x2376, 0x2377, 0x2378, 0x2379,
0x237a, 0x2421, 0x2422, 0x2423, 0x2424, 0x2425, 0x2426, 0x2427,
0x2428, 0x2429, 0x242a, 0x242b, 0x242c, 0x242d, 0x242e, 0x242f,
0x2430, 0x2431, 0x2432, 0x2433, 0x2434, 0x2435, 0x2436, 0x2437,
0x2438, 0x2439, 0x243a, 0x243b, 0x243c, 0x243d, 0x243e, 0x243f,
0x2440, 0x2441, 0x2442, 0x2443, 0x2444, 0x2445, 0x2446, 0x2447,
0x2448, 0x2449, 0x244a, 0x244b, 0x244c, 0x244d, 0x244e, 0x244f,
0x2450, 0x2451, 0x2452, 0x2453, 0x2454, 0x2455, 0x2456, 0x2457,
0x2458, 0x2459, 0x245a, 0x245b, 0x245c, 0x245d, 0x245e, 0x245f,
0x2460, 0x2461, 0x2462, 0x2463, 0x2464, 0x2465, 0x2466, 0x2467,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -