clean repo
[apps/madmutt.git] / mbyte.h
1 /*
2  * Copyright notice from original mutt:
3  * [none]
4  *
5  * This file is part of mutt-ng, see http://www.muttng.org/.
6  * It's licensed under the GNU General Public License,
7  * please see the file GPL in the top level source directory.
8  */
9
10 #ifndef _MBYTE_H
11 # define _MBYTE_H
12
13 #include "config.h"
14
15 # ifdef HAVE_WC_FUNCS
16 #  ifdef HAVE_WCHAR_H
17 #   include <wchar.h>
18 #  endif
19 #  ifdef HAVE_WCTYPE_H
20 #   include <wctype.h>
21 #  endif
22 # endif
23
24 #ifndef HAVE_WC_FUNCS
25 size_t wcrtomb (char *s, wchar_t wc, mbstate_t * ps);
26 size_t mbrtowc (wchar_t * pwc, const char *s, size_t n, mbstate_t * ps);
27 int iswprint (wint_t wc);
28 int iswspace (wint_t wc);
29 int iswalnum (wint_t wc);
30 wint_t towupper (wint_t wc);
31 wint_t towlower (wint_t wc);
32 int wcwidth (wchar_t wc);
33 #endif /* !HAVE_WC_FUNCS */
34
35
36 void mutt_set_charset (char *charset);
37 extern int Charset_is_utf8;
38 size_t utf8rtowc (wchar_t * pwc, const char *s, size_t n, mbstate_t * _ps);
39 wchar_t replacement_char (void);
40
41 #endif /* _MBYTE_H */