diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-09-22 21:02:15 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-09-22 21:02:15 +0000 |
commit | 604c11affe988bab23c87598c02248fff1d73f43 (patch) | |
tree | 6252cbbfd3cf703691a8ddbf1fdee5c1246b5faa /libwc/utf7.h | |
parent | * version.c.in: cvs version (diff) | |
download | w3m-604c11affe988bab23c87598c02248fff1d73f43.tar.gz w3m-604c11affe988bab23c87598c02248fff1d73f43.zip |
merge m17n patch
add libwc
Diffstat (limited to 'libwc/utf7.h')
-rw-r--r-- | libwc/utf7.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libwc/utf7.h b/libwc/utf7.h new file mode 100644 index 0000000..3fcfad9 --- /dev/null +++ b/libwc/utf7.h @@ -0,0 +1,28 @@ + +#ifndef _WC_UTF7_H +#define _WC_UTF7_H + +#define WC_C_UTF7_PLUS '+' +#define WC_C_UTF7_MINUS '-' + +#define WC_UTF7_MAP_SET_D 0x00 +#define WC_UTF7_MAP_SET_O 0x01 +#define WC_UTF7_MAP_SET_B 0x02 +#define WC_UTF7_MAP_C0 0x04 +#define WC_UTF7_MAP_C1 0x08 +#define WC_UTF7_MAP_BASE64 0x10 +#define WC_UTF7_MAP_PLUS 0x20 +#define WC_UTF7_MAP_MINUS 0x40 + +#define WC_UTF7_NOSTATE 0 +#define WC_UTF7_PLUS 1 +#define WC_UTF7_BASE64 2 + +extern wc_uint8 WC_UTF7_MAP[]; + +extern Str wc_conv_from_utf7(Str is, wc_ces ces); +extern void wc_push_to_utf7(Str os, wc_wchar_t cc, wc_status *st); +extern void wc_push_to_utf7_end(Str os, wc_status *st); +extern Str wc_char_conv_from_utf7(wc_uchar c, wc_status *st); + +#endif |