diff options
| author | Tatsuo Ishii | 2000-10-30 10:41:05 +0000 |
|---|---|---|
| committer | Tatsuo Ishii | 2000-10-30 10:41:05 +0000 |
| commit | 1acf6f9c8e1af527b198f2047154f28d7be5c43c (patch) | |
| tree | c723e1c302c945faa871b450a5ca5114a98f18ce /src/include/mb | |
| parent | 0b10d35e2b0f588847f10e79fd693b8be5ad578a (diff) | |
Add support for code conversion between Unicode and other encodings.
Supported encodings are: EUC_JP, EUC_CN, EUC_KR, EUC_TW, Shift JIS,
Big5, ISO8859-[1-5].
TODO: testings! and documentations...
Diffstat (limited to 'src/include/mb')
| -rw-r--r-- | src/include/mb/pg_wchar.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/include/mb/pg_wchar.h b/src/include/mb/pg_wchar.h index 136ead966c9..b4b96b679d7 100644 --- a/src/include/mb/pg_wchar.h +++ b/src/include/mb/pg_wchar.h @@ -1,4 +1,4 @@ -/* $Id: pg_wchar.h,v 1.21 2000/10/27 02:21:15 ishii Exp $ */ +/* $Id: pg_wchar.h,v 1.22 2000/10/30 10:41:05 ishii Exp $ */ #ifndef PG_WCHAR_H #define PG_WCHAR_H @@ -46,8 +46,8 @@ typedef unsigned int pg_wchar; /* * various definitions for EUC */ -#define SS2 0x8e /* single shift 2 */ -#define SS3 0x8f /* single shift 3 */ +#define SS2 0x8e /* single shift 2 (JIS0201) */ +#define SS3 0x8f /* single shift 3 (JIS0212) */ /* * various definitions for mule internal code @@ -104,13 +104,18 @@ typedef struct extern pg_wchar_tbl pg_wchar_table[]; +/* + * UTF-8 to local code conversion map + */ typedef struct { unsigned int utf; /* UTF-8 */ unsigned int code; /* local code */ - unsigned char encoding; /* encoding */ } pg_utf_to_local; +/* + * local code to UTF-8 conversion map + */ typedef struct { unsigned int code; /* local code */ @@ -124,7 +129,6 @@ extern int pg_wchar_strncmp(const pg_wchar *, const pg_wchar *, size_t); extern int pg_char_and_wchar_strncmp(const char *, const pg_wchar *, size_t); extern size_t pg_wchar_strlen(const pg_wchar *); extern int pg_mblen(const unsigned char *); -extern int pg_mblen_with_encoding(const unsigned char *, int); extern int pg_encoding_mblen(int, const unsigned char *); extern int pg_mule_mblen(const unsigned char *); extern int pg_mic_mblen(const unsigned char *); |
