Ruby
1.9.3p448(2013-06-27revision41675)
Main Page
Modules
Data Structures
Files
File List
Globals
ext
nkf
nkf-utf8
utf8tbl.h
Go to the documentation of this file.
1
/*
2
* utf8tbl.h - Header file for Convertion Table
3
*
4
* $Id: utf8tbl.h 25189 2009-10-02 12:04:37Z akr $
5
*/
6
7
#ifndef _UTF8TBL_H_
8
#define _UTF8TBL_H_
9
10
#ifdef UTF8_OUTPUT_ENABLE
11
#define sizeof_euc_to_utf8_1byte 94
12
#define sizeof_euc_to_utf8_2bytes 94
13
extern
const
unsigned
short
euc_to_utf8_1byte
[];
14
extern
const
unsigned
short
*
const
euc_to_utf8_2bytes
[];
15
extern
const
unsigned
short
*
const
euc_to_utf8_2bytes_ms
[];
16
extern
const
unsigned
short
*
const
euc_to_utf8_2bytes_mac
[];
17
extern
const
unsigned
short
*
const
x0212_to_utf8_2bytes
[];
18
#endif
/* UTF8_OUTPUT_ENABLE */
19
20
#ifdef UTF8_INPUT_ENABLE
21
#define sizeof_utf8_to_euc_C2 64
22
#define sizeof_utf8_to_euc_E5B8 64
23
#define sizeof_utf8_to_euc_2bytes 112
24
#define sizeof_utf8_to_euc_3bytes 16
25
extern
const
unsigned
short
*
const
utf8_to_euc_2bytes
[];
26
extern
const
unsigned
short
*
const
utf8_to_euc_2bytes_ms
[];
27
extern
const
unsigned
short
*
const
utf8_to_euc_2bytes_932
[];
28
extern
const
unsigned
short
*
const
utf8_to_euc_2bytes_mac
[];
29
extern
const
unsigned
short
*
const
*
const
utf8_to_euc_3bytes
[];
30
extern
const
unsigned
short
*
const
*
const
utf8_to_euc_3bytes_ms
[];
31
extern
const
unsigned
short
*
const
*
const
utf8_to_euc_3bytes_932
[];
32
extern
const
unsigned
short
*
const
*
const
utf8_to_euc_3bytes_mac
[];
33
#endif
/* UTF8_INPUT_ENABLE */
34
35
#ifdef UNICODE_NORMALIZATION
36
37
#define NORMALIZATION_TABLE_LENGTH 942
38
#define NORMALIZATION_TABLE_NFC_LENGTH 3
39
#define NORMALIZATION_TABLE_NFD_LENGTH 9
40
struct
normalization_pair {
41
const
unsigned
char
nfc[NORMALIZATION_TABLE_NFC_LENGTH];
42
const
unsigned
char
nfd[NORMALIZATION_TABLE_NFD_LENGTH];
43
};
44
extern
const
struct
normalization_pair
normalization_table
[];
45
#endif
46
47
#ifdef SHIFTJIS_CP932
48
#define CP932_TABLE_BEGIN 0xFA
49
#define CP932_TABLE_END 0xFC
50
extern
const
unsigned
short
shiftjis_cp932
[3][189];
51
#define CP932INV_TABLE_BEGIN 0xED
52
#define CP932INV_TABLE_END 0xEE
53
extern
const
unsigned
short
cp932inv
[2][189];
54
#endif
/* SHIFTJIS_CP932 */
55
56
#ifdef X0212_ENABLE
57
extern
const
unsigned
short
shiftjis_x0212
[3][189];
58
extern
const
unsigned
short
*
const
x0212_shiftjis
[];
59
#endif
/* X0212_ENABLE */
60
61
#endif
62
Generated on Fri Jun 28 2013 02:34:34 for Ruby by
1.8.3