ReactOS 0.4.16-dev-297-gc569aee
|
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/nls.h>
#include <linux/errno.h>
Go to the source code of this file.
Macros | |
#define | IS_SJIS_LOW_BYTE(l) ((0x40 <= (l)) && ((l) <= 0xFC) && ((l) != 0x7F)) |
#define | IS_SJIS_JISX0208(h, l) |
#define | IS_SJIS_JISX0201KANA(c) ((0xA1 <= (c)) && ((c) <= 0xDF)) |
#define | IS_SJIS_UDC_LOW(h, l) |
#define | IS_SJIS_UDC_HI(h, l) |
#define | IS_SJIS_IBM(h, l) |
#define | IS_SJIS_NECIBM(h, l) |
#define | MAP_SJIS2EUC(sjis_hi, sjis_lo, sjis_p, euc_hi, euc_lo, euc_p) |
#define | SS2 (0x8E) /* Single Shift 2 */ |
#define | SS3 (0x8F) /* Single Shift 3 */ |
#define | IS_EUC_BYTE(c) ((0xA1 <= (c)) && ((c) <= 0xFE)) |
#define | IS_EUC_JISX0208(h, l) (IS_EUC_BYTE(h) && IS_EUC_BYTE(l)) |
#define | IS_EUC_JISX0201KANA(h, l) (((h) == SS2) && (0xA1 <= (l) && (l) <= 0xDF)) |
#define | IS_EUC_UDC_LOW(h, l) |
#define | IS_EUC_UDC_HI(h, l) IS_EUC_UDC_LOW(h, l) /* G3 block */ |
#define | MAP_EUC2SJIS(euc_hi, euc_lo, euc_p, sjis_hi, sjis_lo, sjis_p) |
#define | IS_EUC_IBM2JISX0208(h, l) (((h) == 0xA2 && (l) == 0xCC) || ((h) == 0xA2 && (l) == 0xE8)) |
#define | MAP_ELEMENT_OF(map) (sizeof(map) / sizeof(map[0])) |
Functions | |
static int | sjisibm2euc (unsigned char *euc, const unsigned char sjis_hi, const unsigned char sjis_lo) |
static int | euc2sjisibm_jisx0212 (unsigned char *sjis, const unsigned char euc_hi, const unsigned char euc_lo) |
static int | euc2sjisibm_g3upper (unsigned char *sjis, const unsigned char euc_hi, const unsigned char euc_lo) |
static int | euc2sjisibm (unsigned char *sjis, const unsigned char euc_hi, const unsigned char euc_lo) |
static int | sjisnec2sjisibm (unsigned char *sjisibm, const unsigned char sjisnec_hi, const unsigned char sjisnec_lo) |
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_euc_jp (void) |
static void __exit | exit_nls_euc_jp (void) |
Variables | |
static struct nls_table * | p_nls |
static unsigned char | sjisibm2euc_map [][2] |
struct { | |
unsigned short euc | |
unsigned char sjis [2] | |
} | euc2sjisibm_jisx0212_map [] |
static unsigned char | euc2sjisibm_g3upper_map [][2] |
static struct nls_table | table |
Definition at line 43 of file nls_euc-jp.c.
Definition at line 141 of file nls_euc-jp.c.
Definition at line 45 of file nls_euc-jp.c.
#define IS_EUC_JISX0208 | ( | h, | |
l | |||
) | (IS_EUC_BYTE(h) && IS_EUC_BYTE(l)) |
Definition at line 44 of file nls_euc-jp.c.
Definition at line 48 of file nls_euc-jp.c.
Definition at line 46 of file nls_euc-jp.c.
Definition at line 27 of file nls_euc-jp.c.
Definition at line 22 of file nls_euc-jp.c.
Definition at line 19 of file nls_euc-jp.c.
Definition at line 17 of file nls_euc-jp.c.
Definition at line 29 of file nls_euc-jp.c.
Definition at line 25 of file nls_euc-jp.c.
Definition at line 23 of file nls_euc-jp.c.
Definition at line 271 of file nls_euc-jp.c.
#define MAP_EUC2SJIS | ( | euc_hi, | |
euc_lo, | |||
euc_p, | |||
sjis_hi, | |||
sjis_lo, | |||
sjis_p | |||
) |
Definition at line 49 of file nls_euc-jp.c.
#define MAP_SJIS2EUC | ( | sjis_hi, | |
sjis_lo, | |||
sjis_p, | |||
euc_hi, | |||
euc_lo, | |||
euc_p | |||
) |
Definition at line 31 of file nls_euc-jp.c.
Definition at line 41 of file nls_euc-jp.c.
Definition at line 42 of file nls_euc-jp.c.
Definition at line 483 of file nls_euc-jp.c.
|
inlinestatic |
Definition at line 352 of file nls_euc-jp.c.
Referenced by char2uni().
|
inlinestatic |
Definition at line 332 of file nls_euc-jp.c.
Referenced by euc2sjisibm().
|
inlinestatic |
Definition at line 306 of file nls_euc-jp.c.
Referenced by euc2sjisibm().
Definition at line 578 of file nls_euc-jp.c.
Referenced by Ext2UnloadAllNls().
Definition at line 565 of file nls_euc-jp.c.
Referenced by Ext2LoadAllNls().
|
inlinestatic |
Definition at line 286 of file nls_euc-jp.c.
Referenced by uni2char().
|
inlinestatic |
Definition at line 378 of file nls_euc-jp.c.
Referenced by uni2char().
Definition at line 411 of file nls_euc-jp.c.
Definition at line 146 of file nls_euc-jp.c.
Referenced by euc2sjisibm_jisx0212(), sjisibm2euc(), and uni2char().
Definition at line 246 of file nls_euc-jp.c.
Referenced by euc2sjisibm_g3upper().
struct { ... } euc2sjisibm_jisx0212_map[] |
Referenced by euc2sjisibm_jisx0212().
Definition at line 15 of file nls_euc-jp.c.
Referenced by char2uni(), exit_nls_euc_jp(), init_nls_euc_jp(), and uni2char().
Definition at line 147 of file nls_euc-jp.c.
Referenced by euc2sjisibm(), euc2sjisibm_g3upper(), and euc2sjisibm_jisx0212().
Definition at line 60 of file nls_euc-jp.c.
Referenced by sjisibm2euc().
Definition at line 556 of file nls_euc-jp.c.