assume char* is in CODESET encoding
[nvi.git] / common / conv.h
blobc2306f281e813e300dd4695d8fb4f55a441e8365
1 #define KEY_COL(sp, ch) \
2 (INTISWIDE(ch) ? CHAR_WIDTH(sp, ch) : KEY_LEN(sp,ch))
4 #define CONV_INCOMPLETE -2
6 struct _conv_win {
7 void *bp1;
8 size_t blen1;
9 void *bp2;
10 size_t blen2;
13 typedef int (*char2wchar_t)
14 (SCR *, const char *, ssize_t, struct _conv_win *, size_t *, CHAR_T **);
15 typedef int (*wchar2char_t)
16 (SCR *, const CHAR_T *, ssize_t, struct _conv_win *, size_t *, char **);
18 struct _conv {
19 char2wchar_t sys2int;
20 wchar2char_t int2sys;
21 char2wchar_t file2int;
22 wchar2char_t int2file;
23 char2wchar_t input2int;
24 wchar2char_t int2disp;