diff options
Diffstat (limited to 'include/unicode.h')
-rw-r--r-- | include/unicode.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/include/unicode.h b/include/unicode.h index 4e2927297..eaf67c833 100644 --- a/include/unicode.h +++ b/include/unicode.h | |||
@@ -30,12 +30,21 @@ enum { | |||
30 | #else | 30 | #else |
31 | 31 | ||
32 | # if CONFIG_LAST_SUPPORTED_WCHAR < 126 || CONFIG_LAST_SUPPORTED_WCHAR >= 0x30000 | 32 | # if CONFIG_LAST_SUPPORTED_WCHAR < 126 || CONFIG_LAST_SUPPORTED_WCHAR >= 0x30000 |
33 | # define LAST_SUPPORTED_WCHAR 0x2ffff | 33 | # undef CONFIG_LAST_SUPPORTED_WCHAR |
34 | # else | 34 | # define CONFIG_LAST_SUPPORTED_WCHAR 0x2ffff |
35 | # define LAST_SUPPORTED_WCHAR CONFIG_LAST_SUPPORTED_WCHAR | 35 | # endif |
36 | |||
37 | # if CONFIG_LAST_SUPPORTED_WCHAR < 0x300 | ||
38 | # undef ENABLE_UNICODE_COMBINING_WCHARS | ||
39 | # define ENABLE_UNICODE_COMBINING_WCHARS 0 | ||
40 | # endif | ||
41 | |||
42 | # if CONFIG_LAST_SUPPORTED_WCHAR < 0x1100 | ||
43 | # undef ENABLE_UNICODE_WIDE_WCHARS | ||
44 | # define ENABLE_UNICODE_WIDE_WCHARS 0 | ||
36 | # endif | 45 | # endif |
37 | 46 | ||
38 | # if LAST_SUPPORTED_WCHAR < 0x590 | 47 | # if CONFIG_LAST_SUPPORTED_WCHAR < 0x590 |
39 | # undef ENABLE_UNICODE_BIDI_SUPPORT | 48 | # undef ENABLE_UNICODE_BIDI_SUPPORT |
40 | # define ENABLE_UNICODE_BIDI_SUPPORT 0 | 49 | # define ENABLE_UNICODE_BIDI_SUPPORT 0 |
41 | # endif | 50 | # endif |
@@ -92,6 +101,7 @@ size_t wcrtomb(char *s, wchar_t wc, mbstate_t *ps) FAST_FUNC; | |||
92 | int iswspace(wint_t wc) FAST_FUNC; | 101 | int iswspace(wint_t wc) FAST_FUNC; |
93 | int iswalnum(wint_t wc) FAST_FUNC; | 102 | int iswalnum(wint_t wc) FAST_FUNC; |
94 | int iswpunct(wint_t wc) FAST_FUNC; | 103 | int iswpunct(wint_t wc) FAST_FUNC; |
104 | int wcwidth(unsigned ucs) FAST_FUNC; | ||
95 | # if ENABLE_UNICODE_BIDI_SUPPORT | 105 | # if ENABLE_UNICODE_BIDI_SUPPORT |
96 | # undef unicode_bidi_isrtl | 106 | # undef unicode_bidi_isrtl |
97 | int unicode_bidi_isrtl(wint_t wc) FAST_FUNC; | 107 | int unicode_bidi_isrtl(wint_t wc) FAST_FUNC; |