• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <ctype.h>
2 #undef isspace
3 #ifdef FEATURE_ICU_LOCALE_TMP
4 #include <locale.h>
5 #include "locale_impl.h"
6 #endif
7 
isspace(int c)8 int isspace(int c)
9 {
10 	return c == ' ' || (unsigned)c-'\t' < 5;
11 }
12 
__isspace_l(int c,locale_t l)13 int __isspace_l(int c, locale_t l)
14 {
15 #ifdef FEATURE_ICU_LOCALE_TMP
16 	if (l && l->cat[LC_CTYPE] && l->cat[LC_CTYPE]->flag == ICU_VALID) {
17 		get_icu_symbol(ICU_I18N, &(g_icu_opt_func.u_isspace), ICU_UCHAR_ISSPACE_SYMBOL);
18 		if (g_icu_opt_func.u_isspace) {
19 			return g_icu_opt_func.u_isspace(c);
20 		}
21 	}
22 #endif
23 	return isspace(c);
24 }
25 
26 weak_alias(__isspace_l, isspace_l);
27