• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <ctype.h>
2 #ifdef FEATURE_ICU_LOCALE_TMP
3 #include <locale.h>
4 #include "locale_impl.h"
5 #endif
6 
isalnum(int c)7 int isalnum(int c)
8 {
9 	return isalpha(c) || isdigit(c);
10 }
11 
__isalnum_l(int c,locale_t l)12 int __isalnum_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_isalnum), ICU_UCHAR_ISALNUM_SYMBOL);
17 		if (g_icu_opt_func.u_isalnum) {
18 			return g_icu_opt_func.u_isalnum(c);
19 		}
20 	}
21 #endif
22 	return isalnum(c);
23 }
24 
25 weak_alias(__isalnum_l, isalnum_l);
26