diff options
Diffstat (limited to 'include/cmsys.h')
-rw-r--r-- | include/cmsys.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/cmsys.h b/include/cmsys.h index 0401da26..879b75e9 100644 --- a/include/cmsys.h +++ b/include/cmsys.h @@ -20,10 +20,17 @@ enum STRIP_FLAG { ONLY_COLOR, // allow only colors (ESC [ .. m) NO_RELOAD // allow all known (color+move) }; + enum LOG_FLAG { LOG_CREAT = 1, }; +/* DBCS aware modes */ +enum _DBCS_STATUS { + DBCS_ASCII, + DBCS_LEADING, + DBCS_TRAILING, +}; #ifdef TIMET64 typedef int32_t time4_t; @@ -85,6 +92,7 @@ extern int strip_blank(char *cbuf, char *buf); extern int strip_ansi(char *buf, const char *str, enum STRIP_FLAG flag); extern void strip_nonebig5(unsigned char *str, int maxlen); extern int DBCS_RemoveIntrEscape(unsigned char *buf, int *len); +extern int DBCS_Status(const char *dbcstr, int pos); extern int invalid_pname(const char *str); extern int is_number(const char *p); extern char * qp_encode (char *s, size_t slen, const char *d, const char *tocode); |