Nico Golde:
[apps/madmutt.git] / mbyte.h
1 #ifndef _MBYTE_H
2 # define _MBYTE_H
3
4 #include "config.h"
5
6 # ifdef HAVE_WC_FUNCS
7 #  ifdef HAVE_WCHAR_H
8 #   include <wchar.h>
9 #  endif
10 #  ifdef HAVE_WCTYPE_H
11 #   include <wctype.h>
12 #  endif
13 # endif
14
15 #ifndef HAVE_WC_FUNCS
16 size_t wcrtomb (char *s, wchar_t wc, mbstate_t *ps);
17 size_t mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps);
18 int iswprint (wint_t wc);
19 int iswspace (wint_t wc);
20 int iswalnum (wint_t wc);
21 wint_t towupper (wint_t wc);
22 wint_t towlower (wint_t wc);
23 int wcwidth (wchar_t wc);
24 #endif /* !HAVE_WC_FUNCS */
25
26
27 void mutt_set_charset (char *charset);
28 extern int Charset_is_utf8;
29 size_t utf8rtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *_ps);
30 wchar_t replacement_char (void);
31
32 #endif /* _MBYTE_H */