Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / ctype / local.h
blob5c293c83d383ae538ba2ab5c1a865eb510f5bbe7
1 /* Modified (m) 2017 Thomas Wolff: fixed locale/wchar handling */
3 /* wctrans constants */
5 #include <_ansi.h>
6 #include "../locale/setlocale.h"
8 /* valid values for wctrans_t */
9 #define WCT_TOLOWER 1
10 #define WCT_TOUPPER 2
12 /* valid values for wctype_t */
13 #define WC_ALNUM 1
14 #define WC_ALPHA 2
15 #define WC_BLANK 3
16 #define WC_CNTRL 4
17 #define WC_DIGIT 5
18 #define WC_GRAPH 6
19 #define WC_LOWER 7
20 #define WC_PRINT 8
21 #define WC_PUNCT 9
22 #define WC_SPACE 10
23 #define WC_UPPER 11
24 #define WC_XDIGIT 12
26 /* internal functions to translate between JP and Unicode */
27 /* note this is not applicable to Cygwin, where wchar_t is always Unicode,
28 and should not be applicable to most other platforms either;
29 * platforms for which wchar_t is not Unicode should be explicitly listed
30 * the transformation should be applied to all non-Unicode locales
31 (also Chinese, Korean, and even 8-bit locales such as *.CP1252)
32 * for towupper and towlower, the result must be back-transformed
33 into the respective locale encoding; currently NOT IMPLEMENTED
35 #ifdef __CYGWIN__
36 /* Under Cygwin, wchar_t (or its extension wint_t) is Unicode */
37 #define _jp2uc(c) (c)
38 #define _jp2uc_l(c, l) (c)
39 #define _uc2jp_l(c, l) (c)
40 #else
41 wint_t _jp2uc (wint_t);
42 wint_t _jp2uc_l (wint_t, struct __locale_t *);
43 wint_t _uc2jp_l (wint_t, struct __locale_t *);
44 #endif