diff options
| author | Tomas Heinrich <heinrich.tomas@gmail.com> | 2010-05-16 20:46:53 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-16 20:46:53 +0200 |
| commit | b8909c52fe850d2731326534822164c2f5258bf5 (patch) | |
| tree | 2e33d71a3caf8861b2380d8e07841dd0eab09a8a /include | |
| parent | 0b7412e66b3d702557a2bf214752ff68d80fcda3 (diff) | |
| download | busybox-w32-b8909c52fe850d2731326534822164c2f5258bf5.tar.gz busybox-w32-b8909c52fe850d2731326534822164c2f5258bf5.tar.bz2 busybox-w32-b8909c52fe850d2731326534822164c2f5258bf5.zip | |
lineedit: partially fix wide and combining chars editing
Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/unicode.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/unicode.h b/include/unicode.h index 4e2927297..747026abe 100644 --- a/include/unicode.h +++ b/include/unicode.h | |||
| @@ -35,6 +35,16 @@ enum { | |||
| 35 | # define LAST_SUPPORTED_WCHAR CONFIG_LAST_SUPPORTED_WCHAR | 35 | # define LAST_SUPPORTED_WCHAR CONFIG_LAST_SUPPORTED_WCHAR |
| 36 | # endif | 36 | # endif |
| 37 | 37 | ||
| 38 | # if LAST_SUPPORTED_WCHAR < 0x300 | ||
| 39 | # undef ENABLE_UNICODE_COMBINING_WCHARS | ||
| 40 | # define ENABLE_UNICODE_COMBINING_WCHARS 0 | ||
| 41 | # endif | ||
| 42 | |||
| 43 | # if LAST_SUPPORTED_WCHAR < 0x1100 | ||
| 44 | # undef ENABLE_UNICODE_WIDE_WCHARS | ||
| 45 | # define ENABLE_UNICODE_WIDE_WCHARS 0 | ||
| 46 | # endif | ||
| 47 | |||
| 38 | # if LAST_SUPPORTED_WCHAR < 0x590 | 48 | # if LAST_SUPPORTED_WCHAR < 0x590 |
| 39 | # undef ENABLE_UNICODE_BIDI_SUPPORT | 49 | # undef ENABLE_UNICODE_BIDI_SUPPORT |
| 40 | # define ENABLE_UNICODE_BIDI_SUPPORT 0 | 50 | # define ENABLE_UNICODE_BIDI_SUPPORT 0 |
| @@ -92,6 +102,7 @@ size_t wcrtomb(char *s, wchar_t wc, mbstate_t *ps) FAST_FUNC; | |||
| 92 | int iswspace(wint_t wc) FAST_FUNC; | 102 | int iswspace(wint_t wc) FAST_FUNC; |
| 93 | int iswalnum(wint_t wc) FAST_FUNC; | 103 | int iswalnum(wint_t wc) FAST_FUNC; |
| 94 | int iswpunct(wint_t wc) FAST_FUNC; | 104 | int iswpunct(wint_t wc) FAST_FUNC; |
| 105 | int wcwidth(unsigned ucs) FAST_FUNC; | ||
| 95 | # if ENABLE_UNICODE_BIDI_SUPPORT | 106 | # if ENABLE_UNICODE_BIDI_SUPPORT |
| 96 | # undef unicode_bidi_isrtl | 107 | # undef unicode_bidi_isrtl |
| 97 | int unicode_bidi_isrtl(wint_t wc) FAST_FUNC; | 108 | int unicode_bidi_isrtl(wint_t wc) FAST_FUNC; |
