X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Funicode.h;h=e0061478de33e5f6ff1de20fff01bd75a9d0b86e;hb=1dacfbb1f466a2964cbf49855f336bcc1d25ebc0;hp=be64a50e255affc7bd695273447bd1cdfd618b04;hpb=42a8fd0db08ab8b45fec6eab4af841f99576b260;p=oweals%2Fbusybox.git diff --git a/include/unicode.h b/include/unicode.h index be64a50e2..e0061478d 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 @@ -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