From 59c41661a7de1c4eab03023fa463792f7be0e944 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 22 Nov 2012 08:47:30 +0000 Subject: * ext/nkf/nkf-utf8: Merge b0a6577a521d1bba5e19853f95d5c4b9be1072b5. Support JIS X 0213 and some bugfixes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/nkf/nkf-utf8/utf8tbl.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'ext/nkf/nkf-utf8/utf8tbl.h') diff --git a/ext/nkf/nkf-utf8/utf8tbl.h b/ext/nkf/nkf-utf8/utf8tbl.h index c3d7709ef7..082fb01a5b 100644 --- a/ext/nkf/nkf-utf8/utf8tbl.h +++ b/ext/nkf/nkf-utf8/utf8tbl.h @@ -1,7 +1,7 @@ /* * utf8tbl.h - Header file for Convertion Table * - * $Id$ + * $Id: utf8tbl.h,v 1.3 2008/01/23 09:10:25 naruse Exp $ */ #ifndef _UTF8TBL_H_ @@ -14,7 +14,17 @@ extern const unsigned short euc_to_utf8_1byte[]; extern const unsigned short *const euc_to_utf8_2bytes[]; extern const unsigned short *const euc_to_utf8_2bytes_ms[]; extern const unsigned short *const euc_to_utf8_2bytes_mac[]; +extern const unsigned short *const euc_to_utf8_2bytes_x0213[]; extern const unsigned short *const x0212_to_utf8_2bytes[]; +extern const unsigned short *const x0212_to_utf8_2bytes_x0213[]; +#define sizeof_x0213_combining_chars 5 +#define sizeof_x0213_combining_table 25 +#define sizeof_x0213_1_surrogate_table 26 +#define sizeof_x0213_2_surrogate_table 277 +extern const unsigned short x0213_combining_chars[sizeof_x0213_combining_chars]; +extern const unsigned short x0213_combining_table[sizeof_x0213_combining_table][3]; +extern const unsigned short x0213_1_surrogate_table[sizeof_x0213_1_surrogate_table][3]; +extern const unsigned short x0213_2_surrogate_table[sizeof_x0213_2_surrogate_table][3]; #endif /* UTF8_OUTPUT_ENABLE */ #ifdef UTF8_INPUT_ENABLE @@ -26,10 +36,12 @@ extern const unsigned short *const utf8_to_euc_2bytes[]; extern const unsigned short *const utf8_to_euc_2bytes_ms[]; extern const unsigned short *const utf8_to_euc_2bytes_932[]; extern const unsigned short *const utf8_to_euc_2bytes_mac[]; +extern const unsigned short *const utf8_to_euc_2bytes_x0213[]; extern const unsigned short *const *const utf8_to_euc_3bytes[]; extern const unsigned short *const *const utf8_to_euc_3bytes_ms[]; extern const unsigned short *const *const utf8_to_euc_3bytes_932[]; extern const unsigned short *const *const utf8_to_euc_3bytes_mac[]; +extern const unsigned short *const *const utf8_to_euc_3bytes_x0213[]; #endif /* UTF8_INPUT_ENABLE */ #ifdef UNICODE_NORMALIZATION -- cgit v1.2.3