ReactOS 0.4.16-dev-297-gc569aee
nls_cp932.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/nls.h>
#include <linux/errno.h>
Include dependency graph for nls_cp932.c:

Go to the source code of this file.

Functions

static int uni2char (const wchar_t uni, unsigned char *out, int boundlen)
 
static int char2uni (const unsigned char *rawstring, int boundlen, wchar_t *uni)
 
static int __init init_nls_cp932 (void)
 
static void __exit exit_nls_cp932 (void)
 

Variables

static wchar_t c2u_81 [256]
 
static wchar_t c2u_82 [256]
 
static wchar_t c2u_83 [256]
 
static wchar_t c2u_84 [256]
 
static wchar_t c2u_87 [256]
 
static wchar_t c2u_88 [256]
 
static wchar_t c2u_89 [256]
 
static wchar_t c2u_8A [256]
 
static wchar_t c2u_8B [256]
 
static wchar_t c2u_8C [256]
 
static wchar_t c2u_8D [256]
 
static wchar_t c2u_8E [256]
 
static wchar_t c2u_8F [256]
 
static wchar_t c2u_90 [256]
 
static wchar_t c2u_91 [256]
 
static wchar_t c2u_92 [256]
 
static wchar_t c2u_93 [256]
 
static wchar_t c2u_94 [256]
 
static wchar_t c2u_95 [256]
 
static wchar_t c2u_96 [256]
 
static wchar_t c2u_97 [256]
 
static wchar_t c2u_98 [256]
 
static wchar_t c2u_99 [256]
 
static wchar_t c2u_9A [256]
 
static wchar_t c2u_9B [256]
 
static wchar_t c2u_9C [256]
 
static wchar_t c2u_9D [256]
 
static wchar_t c2u_9E [256]
 
static wchar_t c2u_9F [256]
 
static wchar_t c2u_E0 [256]
 
static wchar_t c2u_E1 [256]
 
static wchar_t c2u_E2 [256]
 
static wchar_t c2u_E3 [256]
 
static wchar_t c2u_E4 [256]
 
static wchar_t c2u_E5 [256]
 
static wchar_t c2u_E6 [256]
 
static wchar_t c2u_E7 [256]
 
static wchar_t c2u_E8 [256]
 
static wchar_t c2u_E9 [256]
 
static wchar_t c2u_EA [256]
 
static wchar_t c2u_ED [256]
 
static wchar_t c2u_EE [256]
 
static wchar_t c2u_FA [256]
 
static wchar_t c2u_FB [256]
 
static wchar_t c2u_FC [256]
 
static wchar_tpage_charset2uni [256]
 
static unsigned char u2c_00hi [256 - 0xA0][2]
 
static unsigned char u2c_03 [512]
 
static unsigned char u2c_04 [512]
 
static unsigned char u2c_20 [512]
 
static unsigned char u2c_21 [512]
 
static unsigned char u2c_22 [512]
 
static unsigned char u2c_23 [512]
 
static unsigned char u2c_24 [512]
 
static unsigned char u2c_25 [512]
 
static unsigned char u2c_26 [512]
 
static unsigned char u2c_30 [512]
 
static unsigned char u2c_32 [512]
 
static unsigned char u2c_33 [512]
 
static unsigned char u2c_4E [512]
 
static unsigned char u2c_4F [512]
 
static unsigned char u2c_50 [512]
 
static unsigned char u2c_51 [512]
 
static unsigned char u2c_52 [512]
 
static unsigned char u2c_53 [512]
 
static unsigned char u2c_54 [512]
 
static unsigned char u2c_55 [512]
 
static unsigned char u2c_56 [512]
 
static unsigned char u2c_57 [512]
 
static unsigned char u2c_58 [512]
 
static unsigned char u2c_59 [512]
 
static unsigned char u2c_5A [512]
 
static unsigned char u2c_5B [512]
 
static unsigned char u2c_5C [512]
 
static unsigned char u2c_5D [512]
 
static unsigned char u2c_5E [512]
 
static unsigned char u2c_5F [512]
 
static unsigned char u2c_60 [512]
 
static unsigned char u2c_61 [512]
 
static unsigned char u2c_62 [512]
 
static unsigned char u2c_63 [512]
 
static unsigned char u2c_64 [512]
 
static unsigned char u2c_65 [512]
 
static unsigned char u2c_66 [512]
 
static unsigned char u2c_67 [512]
 
static unsigned char u2c_68 [512]
 
static unsigned char u2c_69 [512]
 
static unsigned char u2c_6A [512]
 
static unsigned char u2c_6B [512]
 
static unsigned char u2c_6C [512]
 
static unsigned char u2c_6D [512]
 
static unsigned char u2c_6E [512]
 
static unsigned char u2c_6F [512]
 
static unsigned char u2c_70 [512]
 
static unsigned char u2c_71 [512]
 
static unsigned char u2c_72 [512]
 
static unsigned char u2c_73 [512]
 
static unsigned char u2c_74 [512]
 
static unsigned char u2c_75 [512]
 
static unsigned char u2c_76 [512]
 
static unsigned char u2c_77 [512]
 
static unsigned char u2c_78 [512]
 
static unsigned char u2c_79 [512]
 
static unsigned char u2c_7A [512]
 
static unsigned char u2c_7B [512]
 
static unsigned char u2c_7C [512]
 
static unsigned char u2c_7D [512]
 
static unsigned char u2c_7E [512]
 
static unsigned char u2c_7F [512]
 
static unsigned char u2c_80 [512]
 
static unsigned char u2c_81 [512]
 
static unsigned char u2c_82 [512]
 
static unsigned char u2c_83 [512]
 
static unsigned char u2c_84 [512]
 
static unsigned char u2c_85 [512]
 
static unsigned char u2c_86 [512]
 
static unsigned char u2c_87 [512]
 
static unsigned char u2c_88 [512]
 
static unsigned char u2c_89 [512]
 
static unsigned char u2c_8A [512]
 
static unsigned char u2c_8B [512]
 
static unsigned char u2c_8C [512]
 
static unsigned char u2c_8D [512]
 
static unsigned char u2c_8E [512]
 
static unsigned char u2c_8F [512]
 
static unsigned char u2c_90 [512]
 
static unsigned char u2c_91 [512]
 
static unsigned char u2c_92 [512]
 
static unsigned char u2c_93 [512]
 
static unsigned char u2c_94 [512]
 
static unsigned char u2c_95 [512]
 
static unsigned char u2c_96 [512]
 
static unsigned char u2c_97 [512]
 
static unsigned char u2c_98 [512]
 
static unsigned char u2c_99 [512]
 
static unsigned char u2c_9A [512]
 
static unsigned char u2c_9B [512]
 
static unsigned char u2c_9C [512]
 
static unsigned char u2c_9D [512]
 
static unsigned char u2c_9E [512]
 
static unsigned char u2c_9F [512]
 
static unsigned char u2c_DC [512]
 
static unsigned char u2c_F9 [512]
 
static unsigned char u2c_FA [512]
 
static unsigned char u2c_FF [512]
 
static unsigned charpage_uni2charset [256]
 
static unsigned char charset2lower [256]
 
static unsigned char charset2upper [256]
 
static struct nls_table table
 

Function Documentation

◆ char2uni()

static int char2uni ( const unsigned char rawstring,
int  boundlen,
wchar_t uni 
)
static

Definition at line 7889 of file nls_cp932.c.

7891{
7892 unsigned char ch, cl;
7893 wchar_t *charset2uni;
7894
7895 if (boundlen <= 0)
7896 return -ENAMETOOLONG;
7897
7898 if (rawstring[0] <= 0x7F) {
7899 *uni = rawstring[0];
7900 return 1;
7901 }
7902 if (0xA1 <= rawstring[0] && rawstring[0] <= 0xDF) {
7903 *uni = 0xFF00 | (rawstring[0] - 0x40);
7904 return 1;
7905 }
7906
7907 if (boundlen < 2)
7908 return -ENAMETOOLONG;
7909 ch = rawstring[0];
7910 cl = rawstring[1];
7912 if (charset2uni && cl) {
7913 *uni = charset2uni[cl];
7914 if (*uni == 0x0000)
7915 return -EINVAL;
7916 return 2;
7917 }
7918 else
7919 return -EINVAL;
7920}
#define EINVAL
Definition: acclib.h:90
static wchar_t charset2uni[256]
Definition: nls_ascii.c:16
static wchar_t * page_charset2uni[256]
Definition: nls_cp932.c:1587
#define ENAMETOOLONG
Definition: errno.h:55

◆ exit_nls_cp932()

static void __exit exit_nls_cp932 ( void  )
static

Definition at line 7937 of file nls_cp932.c.

7938{
7940}
int unregister_nls(struct nls_table *)
Definition: nls_base.c:185

Referenced by Ext2UnloadAllNls().

◆ init_nls_cp932()

static int __init init_nls_cp932 ( void  )
static

Definition at line 7932 of file nls_cp932.c.

7933{
7934 return register_nls(&table);
7935}
int register_nls(struct nls_table *)
Definition: nls_base.c:162

Referenced by Ext2LoadAllNls().

◆ uni2char()

static int uni2char ( const wchar_t  uni,
unsigned char out,
int  boundlen 
)
static

Definition at line 7849 of file nls_cp932.c.

7851{
7852 unsigned char *uni2charset;
7853 unsigned char cl = uni&0xFF;
7854 unsigned char ch = (uni>>8)&0xFF;
7855
7856 if (boundlen <= 0)
7857 return -ENAMETOOLONG;
7858
7859 if (ch == 0xFF && 0x61 <= cl && cl <= 0x9F) {
7860 out[0] = cl + 0x40;
7861 return 1;
7862 }
7863 uni2charset = page_uni2charset[ch];
7864 if (uni2charset) {
7865 if (boundlen < 2)
7866 return -ENAMETOOLONG;
7867
7868 out[0] = uni2charset[cl*2];
7869 out[1] = uni2charset[cl*2+1];
7870 if (out[0] == 0x00 && out[1] == 0x00)
7871 return -EINVAL;
7872 return 2;
7873 } else if (ch == 0) {
7874 if (cl <= 0x7F) {
7875 out[0] = cl;
7876 return 1;
7877 } else if (0xA0 <= cl) {
7878 out[0] = u2c_00hi[cl - 0xA0][0];
7879 out[1] = u2c_00hi[cl - 0xA0][1];
7880 if (out[0] && out[1])
7881 return 2;
7882 }
7883 return -EINVAL;
7884 }
7885 else
7886 return -EINVAL;
7887}
static unsigned char * page_uni2charset[256]
Definition: nls_cp932.c:7742
static unsigned char u2c_00hi[256 - 0xA0][2]
Definition: nls_cp932.c:1622
static FILE * out
Definition: regtests2xml.c:44

Variable Documentation

◆ c2u_81

wchar_t c2u_81[256]
static

Definition at line 16 of file nls_cp932.c.

◆ c2u_82

wchar_t c2u_82[256]
static

Definition at line 52 of file nls_cp932.c.

◆ c2u_83

wchar_t c2u_83[256]
static
Initial value:
= {
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,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,
0x30A1,0x30A2,0x30A3,0x30A4,0x30A5,0x30A6,0x30A7,0x30A8,
0x30A9,0x30AA,0x30AB,0x30AC,0x30AD,0x30AE,0x30AF,0x30B0,
0x30B1,0x30B2,0x30B3,0x30B4,0x30B5,0x30B6,0x30B7,0x30B8,
0x30B9,0x30BA,0x30BB,0x30BC,0x30BD,0x30BE,0x30BF,0x30C0,
0x30C1,0x30C2,0x30C3,0x30C4,0x30C5,0x30C6,0x30C7,0x30C8,
0x30C9,0x30CA,0x30CB,0x30CC,0x30CD,0x30CE,0x30CF,0x30D0,
0x30D1,0x30D2,0x30D3,0x30D4,0x30D5,0x30D6,0x30D7,0x30D8,
0x30D9,0x30DA,0x30DB,0x30DC,0x30DD,0x30DE,0x30DF,0x0000,
0x30E0,0x30E1,0x30E2,0x30E3,0x30E4,0x30E5,0x30E6,0x30E7,
0x30E8,0x30E9,0x30EA,0x30EB,0x30EC,0x30ED,0x30EE,0x30EF,
0x30F0,0x30F1,0x30F2,0x30F3,0x30F4,0x30F5,0x30F6,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0391,
0x0392,0x0393,0x0394,0x0395,0x0396,0x0397,0x0398,0x0399,
0x039A,0x039B,0x039C,0x039D,0x039E,0x039F,0x03A0,0x03A1,
0x03A3,0x03A4,0x03A5,0x03A6,0x03A7,0x03A8,0x03A9,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x03B1,
0x03B2,0x03B3,0x03B4,0x03B5,0x03B6,0x03B7,0x03B8,0x03B9,
0x03BA,0x03BB,0x03BC,0x03BD,0x03BE,0x03BF,0x03C0,0x03C1,
0x03C3,0x03C4,0x03C5,0x03C6,0x03C7,0x03C8,0x03C9,0x0000,
}

Definition at line 87 of file nls_cp932.c.

◆ c2u_84

wchar_t c2u_84[256]
static
Initial value:
= {
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,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,
0x0410,0x0411,0x0412,0x0413,0x0414,0x0415,0x0401,0x0416,
0x0417,0x0418,0x0419,0x041A,0x041B,0x041C,0x041D,0x041E,
0x041F,0x0420,0x0421,0x0422,0x0423,0x0424,0x0425,0x0426,
0x0427,0x0428,0x0429,0x042A,0x042B,0x042C,0x042D,0x042E,
0x042F,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0430,0x0431,0x0432,0x0433,0x0434,0x0435,0x0451,0x0436,
0x0437,0x0438,0x0439,0x043A,0x043B,0x043C,0x043D,0x0000,
0x043E,0x043F,0x0440,0x0441,0x0442,0x0443,0x0444,0x0445,
0x0446,0x0447,0x0448,0x0449,0x044A,0x044B,0x044C,0x044D,
0x044E,0x044F,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x2500,
0x2502,0x250C,0x2510,0x2518,0x2514,0x251C,0x252C,0x2524,
0x2534,0x253C,0x2501,0x2503,0x250F,0x2513,0x251B,0x2517,
0x2523,0x2533,0x252B,0x253B,0x254B,0x2520,0x252F,0x2528,
0x2537,0x253F,0x251D,0x2530,0x2525,0x2538,0x2542,0x0000,
}

Definition at line 118 of file nls_cp932.c.

◆ c2u_87

wchar_t c2u_87[256]
static
Initial value:
= {
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,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,
0x2460,0x2461,0x2462,0x2463,0x2464,0x2465,0x2466,0x2467,
0x2468,0x2469,0x246A,0x246B,0x246C,0x246D,0x246E,0x246F,
0x2470,0x2471,0x2472,0x2473,0x2160,0x2161,0x2162,0x2163,
0x2164,0x2165,0x2166,0x2167,0x2168,0x2169,0x0000,0x3349,
0x3314,0x3322,0x334D,0x3318,0x3327,0x3303,0x3336,0x3351,
0x3357,0x330D,0x3326,0x3323,0x332B,0x334A,0x333B,0x339C,
0x339D,0x339E,0x338E,0x338F,0x33C4,0x33A1,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x337B,0x0000,
0x301D,0x301F,0x2116,0x33CD,0x2121,0x32A4,0x32A5,0x32A6,
0x32A7,0x32A8,0x3231,0x3232,0x3239,0x337E,0x337D,0x337C,
0x2252,0x2261,0x222B,0x222E,0x2211,0x221A,0x22A5,0x2220,
0x221F,0x22BF,0x2235,0x2229,0x222A,0x0000,0x0000,0x0000,
}

Definition at line 146 of file nls_cp932.c.

◆ c2u_88

wchar_t c2u_88[256]
static

Definition at line 170 of file nls_cp932.c.

◆ c2u_89

wchar_t c2u_89[256]
static

Definition at line 206 of file nls_cp932.c.

◆ c2u_8A

wchar_t c2u_8A[256]
static

Definition at line 242 of file nls_cp932.c.

◆ c2u_8B

wchar_t c2u_8B[256]
static

Definition at line 278 of file nls_cp932.c.

◆ c2u_8C

wchar_t c2u_8C[256]
static

Definition at line 314 of file nls_cp932.c.

◆ c2u_8D

wchar_t c2u_8D[256]
static

Definition at line 350 of file nls_cp932.c.

◆ c2u_8E

wchar_t c2u_8E[256]
static

Definition at line 386 of file nls_cp932.c.

◆ c2u_8F

wchar_t c2u_8F[256]
static

Definition at line 422 of file nls_cp932.c.

◆ c2u_90

wchar_t c2u_90[256]
static

Definition at line 458 of file nls_cp932.c.

◆ c2u_91

wchar_t c2u_91[256]
static

Definition at line 494 of file nls_cp932.c.

◆ c2u_92

wchar_t c2u_92[256]
static

Definition at line 530 of file nls_cp932.c.

◆ c2u_93

wchar_t c2u_93[256]
static

Definition at line 566 of file nls_cp932.c.

◆ c2u_94

wchar_t c2u_94[256]
static

Definition at line 602 of file nls_cp932.c.

◆ c2u_95

wchar_t c2u_95[256]
static

Definition at line 638 of file nls_cp932.c.

◆ c2u_96

wchar_t c2u_96[256]
static

Definition at line 674 of file nls_cp932.c.

◆ c2u_97

wchar_t c2u_97[256]
static

Definition at line 710 of file nls_cp932.c.

◆ c2u_98

wchar_t c2u_98[256]
static

Definition at line 746 of file nls_cp932.c.

◆ c2u_99

wchar_t c2u_99[256]
static

Definition at line 782 of file nls_cp932.c.

◆ c2u_9A

wchar_t c2u_9A[256]
static

Definition at line 818 of file nls_cp932.c.

◆ c2u_9B

wchar_t c2u_9B[256]
static

Definition at line 854 of file nls_cp932.c.

◆ c2u_9C

wchar_t c2u_9C[256]
static

Definition at line 890 of file nls_cp932.c.

◆ c2u_9D

wchar_t c2u_9D[256]
static

Definition at line 926 of file nls_cp932.c.

◆ c2u_9E

wchar_t c2u_9E[256]
static

Definition at line 962 of file nls_cp932.c.

◆ c2u_9F

wchar_t c2u_9F[256]
static

Definition at line 998 of file nls_cp932.c.

◆ c2u_E0

wchar_t c2u_E0[256]
static

Definition at line 1034 of file nls_cp932.c.

◆ c2u_E1

wchar_t c2u_E1[256]
static

Definition at line 1070 of file nls_cp932.c.

◆ c2u_E2

wchar_t c2u_E2[256]
static

Definition at line 1106 of file nls_cp932.c.

◆ c2u_E3

wchar_t c2u_E3[256]
static

Definition at line 1142 of file nls_cp932.c.

◆ c2u_E4

wchar_t c2u_E4[256]
static

Definition at line 1178 of file nls_cp932.c.

◆ c2u_E5

wchar_t c2u_E5[256]
static

Definition at line 1214 of file nls_cp932.c.

◆ c2u_E6

wchar_t c2u_E6[256]
static

Definition at line 1250 of file nls_cp932.c.

◆ c2u_E7

wchar_t c2u_E7[256]
static

Definition at line 1286 of file nls_cp932.c.

◆ c2u_E8

wchar_t c2u_E8[256]
static

Definition at line 1322 of file nls_cp932.c.

◆ c2u_E9

wchar_t c2u_E9[256]
static

Definition at line 1358 of file nls_cp932.c.

◆ c2u_EA

wchar_t c2u_EA[256]
static

Definition at line 1394 of file nls_cp932.c.

◆ c2u_ED

wchar_t c2u_ED[256]
static

Definition at line 1430 of file nls_cp932.c.

◆ c2u_EE

wchar_t c2u_EE[256]
static

Definition at line 1466 of file nls_cp932.c.

◆ c2u_FA

wchar_t c2u_FA[256]
static

Definition at line 1502 of file nls_cp932.c.

◆ c2u_FB

wchar_t c2u_FB[256]
static

Definition at line 1538 of file nls_cp932.c.

◆ c2u_FC

wchar_t c2u_FC[256]
static
Initial value:
= {
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,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,
0x9ADC,0x9B75,0x9B72,0x9B8F,0x9BB1,0x9BBB,0x9C00,0x9D70,
0x9D6B,0xFA2D,0x9E19,0x9ED1,0x0000,0x0000,0x0000,0x0000,
}

Definition at line 1574 of file nls_cp932.c.

◆ charset2lower

unsigned char charset2lower[256]
static

Definition at line 7777 of file nls_cp932.c.

◆ charset2upper

unsigned char charset2upper[256]
static

Definition at line 7813 of file nls_cp932.c.

◆ page_charset2uni

wchar_t* page_charset2uni[256]
static

Definition at line 1587 of file nls_cp932.c.

Referenced by char2uni().

◆ page_uni2charset

unsigned char* page_uni2charset[256]
static

Definition at line 7742 of file nls_cp932.c.

Referenced by uni2char().

◆ table

Initial value:
= {
"cp932",
"sjis",
}
#define THIS_MODULE
Definition: module.h:269
static int char2uni(const unsigned char *rawstring, int boundlen, wchar_t *uni)
Definition: nls_cp932.c:7889
static int uni2char(const wchar_t uni, unsigned char *out, int boundlen)
Definition: nls_cp932.c:7849
static unsigned char charset2lower[256]
Definition: nls_cp932.c:7777
static unsigned char charset2upper[256]
Definition: nls_cp932.c:7813

Definition at line 7922 of file nls_cp932.c.

◆ u2c_00hi

unsigned char u2c_00hi[256 - 0xA0][2]
static
Initial value:
= {
{0x00, 0x00}, {0x00, 0x00}, {0x81, 0x91}, {0x81, 0x92},
{0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00}, {0x81, 0x98},
{0x81, 0x4E}, {0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00},
{0x81, 0xCA}, {0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00},
{0x81, 0x8B}, {0x81, 0x7D}, {0x00, 0x00}, {0x00, 0x00},
{0x81, 0x4C}, {0x00, 0x00}, {0x81, 0xF7}, {0x00, 0x00},
{0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00},
{0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00},
{0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00},
{0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00},
{0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00},
{0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00},
{0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00},
{0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00}, {0x81, 0x7E},
{0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00},
{0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00},
{0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00},
{0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00},
{0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00},
{0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00},
{0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00},
{0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00}, {0x81, 0x80},
{0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00},
{0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00}, {0x00, 0x00},
}

Definition at line 1622 of file nls_cp932.c.

Referenced by uni2char().

◆ u2c_03

unsigned char u2c_03[512]
static

Definition at line 1649 of file nls_cp932.c.

◆ u2c_04

unsigned char u2c_04[512]
static
Initial value:
= {
0x00, 0x00, 0x84, 0x46, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x84, 0x40, 0x84, 0x41, 0x84, 0x42, 0x84, 0x43,
0x84, 0x44, 0x84, 0x45, 0x84, 0x47, 0x84, 0x48,
0x84, 0x49, 0x84, 0x4A, 0x84, 0x4B, 0x84, 0x4C,
0x84, 0x4D, 0x84, 0x4E, 0x84, 0x4F, 0x84, 0x50,
0x84, 0x51, 0x84, 0x52, 0x84, 0x53, 0x84, 0x54,
0x84, 0x55, 0x84, 0x56, 0x84, 0x57, 0x84, 0x58,
0x84, 0x59, 0x84, 0x5A, 0x84, 0x5B, 0x84, 0x5C,
0x84, 0x5D, 0x84, 0x5E, 0x84, 0x5F, 0x84, 0x60,
0x84, 0x70, 0x84, 0x71, 0x84, 0x72, 0x84, 0x73,
0x84, 0x74, 0x84, 0x75, 0x84, 0x77, 0x84, 0x78,
0x84, 0x79, 0x84, 0x7A, 0x84, 0x7B, 0x84, 0x7C,
0x84, 0x7D, 0x84, 0x7E, 0x84, 0x80, 0x84, 0x81,
0x84, 0x82, 0x84, 0x83, 0x84, 0x84, 0x84, 0x85,
0x84, 0x86, 0x84, 0x87, 0x84, 0x88, 0x84, 0x89,
0x84, 0x8A, 0x84, 0x8B, 0x84, 0x8C, 0x84, 0x8D,
0x84, 0x8E, 0x84, 0x8F, 0x84, 0x90, 0x84, 0x91,
0x00, 0x00, 0x84, 0x76, 0x00, 0x00, 0x00, 0x00,
}

Definition at line 1704 of file nls_cp932.c.

◆ u2c_20

unsigned char u2c_20[512]
static
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x81, 0x5D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x81, 0x5C, 0x00, 0x00, 0x00, 0x00,
0x81, 0x65, 0x81, 0x66, 0x00, 0x00, 0x00, 0x00,
0x81, 0x67, 0x81, 0x68, 0x00, 0x00, 0x00, 0x00,
0x81, 0xF5, 0x81, 0xF6, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x81, 0x64, 0x81, 0x63, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x81, 0xF1, 0x00, 0x00, 0x81, 0x8C, 0x81, 0x8D,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0xA6,
}

Definition at line 1728 of file nls_cp932.c.

◆ u2c_21

unsigned char u2c_21[512]
static

Definition at line 1746 of file nls_cp932.c.

◆ u2c_22

unsigned char u2c_22[512]
static

Definition at line 1804 of file nls_cp932.c.

◆ u2c_23

unsigned char u2c_23[512]
static
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x81, 0xDC, 0x00, 0x00,
}

Definition at line 1856 of file nls_cp932.c.

◆ u2c_24

unsigned char u2c_24[512]
static

Definition at line 1864 of file nls_cp932.c.

◆ u2c_25

unsigned char u2c_25[512]
static

Definition at line 1896 of file nls_cp932.c.

◆ u2c_26

unsigned char u2c_26[512]
static
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x81, 0x9A, 0x81, 0x99, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x81, 0x8A, 0x00, 0x00, 0x81, 0x89, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x81, 0xF4, 0x00, 0x00,
0x00, 0x00, 0x81, 0xF3, 0x00, 0x00, 0x81, 0xF2,
}

Definition at line 1960 of file nls_cp932.c.

◆ u2c_30

unsigned char u2c_30[512]
static

Definition at line 1991 of file nls_cp932.c.

◆ u2c_32

unsigned char u2c_32[512]
static

Definition at line 2059 of file nls_cp932.c.

◆ u2c_33

unsigned char u2c_33[512]
static

Definition at line 2106 of file nls_cp932.c.

◆ u2c_4E

unsigned char u2c_4E[512]
static

Definition at line 2162 of file nls_cp932.c.

◆ u2c_4F

unsigned char u2c_4F[512]
static

Definition at line 2230 of file nls_cp932.c.

◆ u2c_50

unsigned char u2c_50[512]
static

Definition at line 2298 of file nls_cp932.c.

◆ u2c_51

unsigned char u2c_51[512]
static

Definition at line 2365 of file nls_cp932.c.

◆ u2c_52

unsigned char u2c_52[512]
static

Definition at line 2433 of file nls_cp932.c.

◆ u2c_53

unsigned char u2c_53[512]
static

Definition at line 2501 of file nls_cp932.c.

◆ u2c_54

unsigned char u2c_54[512]
static

Definition at line 2568 of file nls_cp932.c.

◆ u2c_55

unsigned char u2c_55[512]
static

Definition at line 2636 of file nls_cp932.c.

◆ u2c_56

unsigned char u2c_56[512]
static

Definition at line 2704 of file nls_cp932.c.

◆ u2c_57

unsigned char u2c_57[512]
static

Definition at line 2772 of file nls_cp932.c.

◆ u2c_58

unsigned char u2c_58[512]
static

Definition at line 2840 of file nls_cp932.c.

◆ u2c_59

unsigned char u2c_59[512]
static

Definition at line 2908 of file nls_cp932.c.

◆ u2c_5A

unsigned char u2c_5A[512]
static

Definition at line 2976 of file nls_cp932.c.

◆ u2c_5B

unsigned char u2c_5B[512]
static

Definition at line 3043 of file nls_cp932.c.

◆ u2c_5C

unsigned char u2c_5C[512]
static

Definition at line 3111 of file nls_cp932.c.

◆ u2c_5D

unsigned char u2c_5D[512]
static

Definition at line 3179 of file nls_cp932.c.

◆ u2c_5E

unsigned char u2c_5E[512]
static

Definition at line 3247 of file nls_cp932.c.

◆ u2c_5F

unsigned char u2c_5F[512]
static

Definition at line 3315 of file nls_cp932.c.

◆ u2c_60

unsigned char u2c_60[512]
static

Definition at line 3383 of file nls_cp932.c.

◆ u2c_61

unsigned char u2c_61[512]
static

Definition at line 3450 of file nls_cp932.c.

◆ u2c_62

unsigned char u2c_62[512]
static

Definition at line 3518 of file nls_cp932.c.

◆ u2c_63

unsigned char u2c_63[512]
static

Definition at line 3586 of file nls_cp932.c.

◆ u2c_64

unsigned char u2c_64[512]
static

Definition at line 3653 of file nls_cp932.c.

◆ u2c_65

unsigned char u2c_65[512]
static

Definition at line 3721 of file nls_cp932.c.

◆ u2c_66

unsigned char u2c_66[512]
static

Definition at line 3788 of file nls_cp932.c.

◆ u2c_67

unsigned char u2c_67[512]
static

Definition at line 3856 of file nls_cp932.c.

◆ u2c_68

unsigned char u2c_68[512]
static

Definition at line 3924 of file nls_cp932.c.

◆ u2c_69

unsigned char u2c_69[512]
static

Definition at line 3991 of file nls_cp932.c.

◆ u2c_6A

unsigned char u2c_6A[512]
static

Definition at line 4059 of file nls_cp932.c.

◆ u2c_6B

unsigned char u2c_6B[512]
static

Definition at line 4126 of file nls_cp932.c.

◆ u2c_6C

unsigned char u2c_6C[512]
static

Definition at line 4191 of file nls_cp932.c.

◆ u2c_6D

unsigned char u2c_6D[512]
static

Definition at line 4256 of file nls_cp932.c.

◆ u2c_6E

unsigned char u2c_6E[512]
static

Definition at line 4324 of file nls_cp932.c.

◆ u2c_6F

unsigned char u2c_6F[512]
static

Definition at line 4392 of file nls_cp932.c.

◆ u2c_70

unsigned char u2c_70[512]
static

Definition at line 4460 of file nls_cp932.c.

◆ u2c_71

unsigned char u2c_71[512]
static

Definition at line 4528 of file nls_cp932.c.

◆ u2c_72

unsigned char u2c_72[512]
static

Definition at line 4596 of file nls_cp932.c.

◆ u2c_73

unsigned char u2c_73[512]
static

Definition at line 4664 of file nls_cp932.c.

◆ u2c_74

unsigned char u2c_74[512]
static

Definition at line 4732 of file nls_cp932.c.

◆ u2c_75

unsigned char u2c_75[512]
static

Definition at line 4799 of file nls_cp932.c.

◆ u2c_76

unsigned char u2c_76[512]
static

Definition at line 4867 of file nls_cp932.c.

◆ u2c_77

unsigned char u2c_77[512]
static

Definition at line 4935 of file nls_cp932.c.

◆ u2c_78

unsigned char u2c_78[512]
static

Definition at line 5003 of file nls_cp932.c.

◆ u2c_79

unsigned char u2c_79[512]
static

Definition at line 5071 of file nls_cp932.c.

◆ u2c_7A

unsigned char u2c_7A[512]
static

Definition at line 5138 of file nls_cp932.c.

◆ u2c_7B

unsigned char u2c_7B[512]
static

Definition at line 5206 of file nls_cp932.c.

◆ u2c_7C

unsigned char u2c_7C[512]
static

Definition at line 5272 of file nls_cp932.c.

◆ u2c_7D

unsigned char u2c_7D[512]
static

Definition at line 5340 of file nls_cp932.c.

◆ u2c_7E

unsigned char u2c_7E[512]
static

Definition at line 5407 of file nls_cp932.c.

◆ u2c_7F

unsigned char u2c_7F[512]
static

Definition at line 5451 of file nls_cp932.c.

◆ u2c_80

unsigned char u2c_80[512]
static

Definition at line 5519 of file nls_cp932.c.

◆ u2c_81

unsigned char u2c_81[512]
static

Definition at line 5587 of file nls_cp932.c.

◆ u2c_82

unsigned char u2c_82[512]
static

Definition at line 5655 of file nls_cp932.c.

◆ u2c_83

unsigned char u2c_83[512]
static

Definition at line 5722 of file nls_cp932.c.

◆ u2c_84

unsigned char u2c_84[512]
static

Definition at line 5790 of file nls_cp932.c.

◆ u2c_85

unsigned char u2c_85[512]
static

Definition at line 5858 of file nls_cp932.c.

◆ u2c_86

unsigned char u2c_86[512]
static

Definition at line 5926 of file nls_cp932.c.

◆ u2c_87

unsigned char u2c_87[512]
static

Definition at line 5994 of file nls_cp932.c.

◆ u2c_88

unsigned char u2c_88[512]
static

Definition at line 6062 of file nls_cp932.c.

◆ u2c_89

unsigned char u2c_89[512]
static

Definition at line 6130 of file nls_cp932.c.

◆ u2c_8A

unsigned char u2c_8A[512]
static

Definition at line 6197 of file nls_cp932.c.

◆ u2c_8B

unsigned char u2c_8B[512]
static

Definition at line 6265 of file nls_cp932.c.

◆ u2c_8C

unsigned char u2c_8C[512]
static

Definition at line 6308 of file nls_cp932.c.

◆ u2c_8D

unsigned char u2c_8D[512]
static

Definition at line 6376 of file nls_cp932.c.

◆ u2c_8E

unsigned char u2c_8E[512]
static

Definition at line 6444 of file nls_cp932.c.

◆ u2c_8F

unsigned char u2c_8F[512]
static

Definition at line 6512 of file nls_cp932.c.

◆ u2c_90

unsigned char u2c_90[512]
static

Definition at line 6580 of file nls_cp932.c.

◆ u2c_91

unsigned char u2c_91[512]
static

Definition at line 6648 of file nls_cp932.c.

◆ u2c_92

unsigned char u2c_92[512]
static

Definition at line 6716 of file nls_cp932.c.

◆ u2c_93

unsigned char u2c_93[512]
static

Definition at line 6784 of file nls_cp932.c.

◆ u2c_94

unsigned char u2c_94[512]
static

Definition at line 6851 of file nls_cp932.c.

◆ u2c_95

unsigned char u2c_95[512]
static

Definition at line 6888 of file nls_cp932.c.

◆ u2c_96

unsigned char u2c_96[512]
static

Definition at line 6950 of file nls_cp932.c.

◆ u2c_97

unsigned char u2c_97[512]
static

Definition at line 7017 of file nls_cp932.c.

◆ u2c_98

unsigned char u2c_98[512]
static

Definition at line 7085 of file nls_cp932.c.

◆ u2c_99

unsigned char u2c_99[512]
static

Definition at line 7153 of file nls_cp932.c.

◆ u2c_9A

unsigned char u2c_9A[512]
static

Definition at line 7221 of file nls_cp932.c.

◆ u2c_9B

unsigned char u2c_9B[512]
static

Definition at line 7288 of file nls_cp932.c.

◆ u2c_9C

unsigned char u2c_9C[512]
static

Definition at line 7354 of file nls_cp932.c.

◆ u2c_9D

unsigned char u2c_9D[512]
static

Definition at line 7420 of file nls_cp932.c.

◆ u2c_9E

unsigned char u2c_9E[512]
static

Definition at line 7488 of file nls_cp932.c.

◆ u2c_9F

unsigned char u2c_9F[512]
static

Definition at line 7556 of file nls_cp932.c.

◆ u2c_DC

unsigned char u2c_DC[512]
static
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
}

Definition at line 7601 of file nls_cp932.c.

◆ u2c_F9

unsigned char u2c_F9[512]
static

Definition at line 7605 of file nls_cp932.c.

◆ u2c_FA

unsigned char u2c_FA[512]
static
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0xED, 0x73, 0xED, 0x7E,
0xED, 0x80, 0xED, 0x95, 0xED, 0xBC, 0xED, 0xCC,
0xED, 0xCE, 0xED, 0xF9, 0xEE, 0x42, 0xEE, 0x59,
0xEE, 0x61, 0xEE, 0x62, 0xEE, 0x63, 0xEE, 0x65,
0xEE, 0x69, 0xEE, 0x6C, 0xEE, 0x75, 0xEE, 0x81,
0xEE, 0x83, 0xEE, 0x84, 0xEE, 0x8D, 0xEE, 0x95,
0xEE, 0x97, 0xEE, 0x98, 0xEE, 0x9B, 0xEE, 0xB7,
0xEE, 0xBE, 0xEE, 0xCE, 0xEE, 0xDA, 0xEE, 0xDB,
0xEE, 0xDD, 0xEE, 0xEA, 0x00, 0x00, 0x00, 0x00,
}

Definition at line 7665 of file nls_cp932.c.

◆ u2c_FF

unsigned char u2c_FF[512]
static

Definition at line 7680 of file nls_cp932.c.