diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/unicode.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/unicode.h b/include/unicode.h index 857aab138..05bdbca02 100644 --- a/include/unicode.h +++ b/include/unicode.h | |||
@@ -18,6 +18,8 @@ enum { | |||
18 | UNICODE_ON = 2, | 18 | UNICODE_ON = 2, |
19 | }; | 19 | }; |
20 | 20 | ||
21 | #define unicode_isrtl(wc) 0 | ||
22 | |||
21 | #if !ENABLE_FEATURE_ASSUME_UNICODE | 23 | #if !ENABLE_FEATURE_ASSUME_UNICODE |
22 | 24 | ||
23 | # define unicode_strlen(string) strlen(string) | 25 | # define unicode_strlen(string) strlen(string) |
@@ -26,6 +28,17 @@ enum { | |||
26 | 28 | ||
27 | #else | 29 | #else |
28 | 30 | ||
31 | # if CONFIG_LAST_SUPPORTED_WCHAR < 126 || CONFIG_LAST_SUPPORTED_WCHAR >= 0x30000 | ||
32 | # define LAST_SUPPORTED_WCHAR 0x2ffff | ||
33 | # else | ||
34 | # define LAST_SUPPORTED_WCHAR CONFIG_LAST_SUPPORTED_WCHAR | ||
35 | # endif | ||
36 | |||
37 | # if LAST_SUPPORTED_WCHAR < 0x590 | ||
38 | # undef ENABLE_UNICODE_BIDI_SUPPORT | ||
39 | # define ENABLE_UNICODE_BIDI_SUPPORT 0 | ||
40 | # endif | ||
41 | |||
29 | size_t FAST_FUNC unicode_strlen(const char *string); | 42 | size_t FAST_FUNC unicode_strlen(const char *string); |
30 | enum { | 43 | enum { |
31 | UNI_FLAG_PAD = (1 << 0), | 44 | UNI_FLAG_PAD = (1 << 0), |
@@ -78,6 +91,10 @@ size_t wcrtomb(char *s, wchar_t wc, mbstate_t *ps) FAST_FUNC; | |||
78 | int iswspace(wint_t wc) FAST_FUNC; | 91 | int iswspace(wint_t wc) FAST_FUNC; |
79 | int iswalnum(wint_t wc) FAST_FUNC; | 92 | int iswalnum(wint_t wc) FAST_FUNC; |
80 | int iswpunct(wint_t wc) FAST_FUNC; | 93 | int iswpunct(wint_t wc) FAST_FUNC; |
94 | # if ENABLE_UNICODE_BIDI_SUPPORT | ||
95 | # undef unicode_isrtl | ||
96 | int unicode_isrtl(wint_t wc) FAST_FUNC; | ||
97 | # endif | ||
81 | 98 | ||
82 | 99 | ||
83 | # endif /* !LOCALE_SUPPORT */ | 100 | # endif /* !LOCALE_SUPPORT */ |