ext/nkf/nkf-utf8/utf8tbl.h

Go to the documentation of this file.
00001 /*
00002  * utf8tbl.h - Header file for Convertion Table
00003  *
00004  */
00005 
00006 #ifndef _UTF8TBL_H_
00007 #define _UTF8TBL_H_
00008 
00009 #ifdef UTF8_OUTPUT_ENABLE
00010 #define sizeof_euc_to_utf8_1byte 94
00011 #define sizeof_euc_to_utf8_2bytes 94
00012 extern const unsigned short euc_to_utf8_1byte[];
00013 extern const unsigned short *const euc_to_utf8_2bytes[];
00014 extern const unsigned short *const euc_to_utf8_2bytes_ms[];
00015 extern const unsigned short *const euc_to_utf8_2bytes_mac[];
00016 extern const unsigned short *const euc_to_utf8_2bytes_x0213[];
00017 extern const unsigned short *const x0212_to_utf8_2bytes[];
00018 extern const unsigned short *const x0212_to_utf8_2bytes_x0213[];
00019 #define sizeof_x0213_combining_chars 5
00020 #define sizeof_x0213_combining_table 25
00021 #define sizeof_x0213_1_surrogate_table 26
00022 #define sizeof_x0213_2_surrogate_table 277
00023 extern const unsigned short x0213_combining_chars[sizeof_x0213_combining_chars];
00024 extern const unsigned short x0213_combining_table[sizeof_x0213_combining_table][3];
00025 extern const unsigned short x0213_1_surrogate_table[sizeof_x0213_1_surrogate_table][3];
00026 extern const unsigned short x0213_2_surrogate_table[sizeof_x0213_2_surrogate_table][3];
00027 #endif /* UTF8_OUTPUT_ENABLE */
00028 
00029 #ifdef UTF8_INPUT_ENABLE
00030 #define sizeof_utf8_to_euc_C2 64
00031 #define sizeof_utf8_to_euc_E5B8 64
00032 #define sizeof_utf8_to_euc_2bytes 112
00033 #define sizeof_utf8_to_euc_3bytes 16
00034 extern const unsigned short *const utf8_to_euc_2bytes[];
00035 extern const unsigned short *const utf8_to_euc_2bytes_ms[];
00036 extern const unsigned short *const utf8_to_euc_2bytes_932[];
00037 extern const unsigned short *const utf8_to_euc_2bytes_mac[];
00038 extern const unsigned short *const utf8_to_euc_2bytes_x0213[];
00039 extern const unsigned short *const *const utf8_to_euc_3bytes[];
00040 extern const unsigned short *const *const utf8_to_euc_3bytes_ms[];
00041 extern const unsigned short *const *const utf8_to_euc_3bytes_932[];
00042 extern const unsigned short *const *const utf8_to_euc_3bytes_mac[];
00043 extern const unsigned short *const *const utf8_to_euc_3bytes_x0213[];
00044 #endif /* UTF8_INPUT_ENABLE */
00045 
00046 #ifdef UNICODE_NORMALIZATION
00047 
00048 #define NORMALIZATION_TABLE_LENGTH 942
00049 #define NORMALIZATION_TABLE_NFC_LENGTH 3
00050 #define NORMALIZATION_TABLE_NFD_LENGTH 9
00051 struct normalization_pair {
00052     const unsigned char nfc[NORMALIZATION_TABLE_NFC_LENGTH];
00053     const unsigned char nfd[NORMALIZATION_TABLE_NFD_LENGTH];
00054 };
00055 extern const struct normalization_pair normalization_table[];
00056 #endif
00057 
00058 #ifdef SHIFTJIS_CP932
00059 #define CP932_TABLE_BEGIN 0xFA
00060 #define CP932_TABLE_END   0xFC
00061 extern const unsigned short shiftjis_cp932[3][189];
00062 #define CP932INV_TABLE_BEGIN 0xED
00063 #define CP932INV_TABLE_END   0xEE
00064 extern const unsigned short cp932inv[2][189];
00065 #endif /* SHIFTJIS_CP932 */
00066 
00067 #ifdef X0212_ENABLE
00068 extern const unsigned short shiftjis_x0212[3][189];
00069 extern const unsigned short *const x0212_shiftjis[];
00070 #endif /* X0212_ENABLE */
00071 
00072 #endif
00073 

Generated on 19 Jul 2016 for Ruby by  doxygen 1.4.7