summaryrefslogtreecommitdiff
path: root/include/unicode.h
diff options
context:
space:
mode:
authorDenys Vlasenko2009-07-11 22:26:48 +0200
committerDenys Vlasenko2009-07-11 22:26:48 +0200
commitfda8f57360aaf24dba3784aae4818f5a351f5c7d (patch)
treeb8de1ad1663efc5270ae2e5e1067d84a1530474f /include/unicode.h
parent42a8fd0db08ab8b45fec6eab4af841f99576b260 (diff)
downloadbusybox-fda8f57360aaf24dba3784aae4818f5a351f5c7d.zip
busybox-fda8f57360aaf24dba3784aae4818f5a351f5c7d.tar.gz
tweaking Unicode support
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/unicode.h')
-rw-r--r--include/unicode.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/unicode.h b/include/unicode.h
index be64a50..e006147 100644
--- a/include/unicode.h
+++ b/include/unicode.h
@@ -7,10 +7,13 @@
#if !ENABLE_FEATURE_ASSUME_UNICODE
+# define bb_mbstrlen(string) strlen(string)
# define check_unicode_in_env() ((void)0)
#else
+size_t bb_mbstrlen(const char *string) FAST_FUNC;
+
# if ENABLE_LOCALE_SUPPORT
# include <wchar.h>
@@ -19,6 +22,8 @@
# else
+/* Crude "locale support" which knows only C and Unicode locales */
+
# if !ENABLE_FEATURE_CHECK_UNICODE_IN_ENV
# define check_unicode_in_env() ((void)0)
# else
@@ -50,8 +55,8 @@ int iswspace(wint_t wc) FAST_FUNC;
int iswalnum(wint_t wc) FAST_FUNC;
int iswpunct(wint_t wc) FAST_FUNC;
-# endif
+# endif /* !LOCALE_SUPPORT */
-#endif
+#endif /* FEATURE_ASSUME_UNICODE */
#endif