1 #include <ctype.h>
2 #ifdef FEATURE_ICU_LOCALE_TMP
3 #include <locale.h>
4 #include "locale_impl.h"
5 #endif
6 
isblank(int c)7 int isblank(int c)
8 {
9 	return (c == ' ' || c == '\t');
10 }
11 
__isblank_l(int c, locale_t l)12 int __isblank_l(int c, locale_t l)
13 {
14 #ifdef FEATURE_ICU_LOCALE_TMP
15 	if (l && l->cat[LC_CTYPE] && l->cat[LC_CTYPE]->flag == ICU_VALID) {
16 		get_icu_symbol(ICU_I18N, &(g_icu_opt_func.u_isblank), ICU_UCHAR_ISBLANK_SYMBOL);
17 		if (g_icu_opt_func.u_isblank) {
18 			return g_icu_opt_func.u_isblank(c);
19 		}
20 	}
21 #endif
22 	return isblank(c);
23 }
24 
25 weak_alias(__isblank_l, isblank_l);
26