aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomas Heinrich <heinrich.tomas@gmail.com>2010-05-16 20:46:53 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-05-16 20:46:53 +0200
commitb8909c52fe850d2731326534822164c2f5258bf5 (patch)
tree2e33d71a3caf8861b2380d8e07841dd0eab09a8a /include
parent0b7412e66b3d702557a2bf214752ff68d80fcda3 (diff)
downloadbusybox-b8909c52fe850d2731326534822164c2f5258bf5.tar.gz
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.h11
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 {
# define LAST_SUPPORTED_WCHAR CONFIG_LAST_SUPPORTED_WCHAR
# endif
+# if LAST_SUPPORTED_WCHAR < 0x300
+# undef ENABLE_UNICODE_COMBINING_WCHARS
+# define ENABLE_UNICODE_COMBINING_WCHARS 0
+# endif
+
+# if LAST_SUPPORTED_WCHAR < 0x1100
+# undef ENABLE_UNICODE_WIDE_WCHARS
+# define ENABLE_UNICODE_WIDE_WCHARS 0
+# endif
+
# if LAST_SUPPORTED_WCHAR < 0x590
# undef ENABLE_UNICODE_BIDI_SUPPORT
# define ENABLE_UNICODE_BIDI_SUPPORT 0
@@ -92,6 +102,7 @@ size_t wcrtomb(char *s, wchar_t wc, mbstate_t *ps) FAST_FUNC;
int iswspace(wint_t wc) FAST_FUNC;
int iswalnum(wint_t wc) FAST_FUNC;
int iswpunct(wint_t wc) FAST_FUNC;
+int wcwidth(unsigned ucs) FAST_FUNC;
# if ENABLE_UNICODE_BIDI_SUPPORT
# undef unicode_bidi_isrtl
int unicode_bidi_isrtl(wint_t wc) FAST_FUNC;