1 #include <ctype.h> 2 #ifdef FEATURE_ICU_LOCALE_TMP 3 #include <locale.h> 4 #include "locale_impl.h" 5 #endif 6 isxdigit(int c)7int isxdigit(int c) 8 { 9 return isdigit(c) || ((unsigned)c|32)-'a' < 6; 10 } 11 __isxdigit_l(int c, locale_t l)12int __isxdigit_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_isxdigit), ICU_UCHAR_ISXDIGIT_SYMBOL); 17 if (g_icu_opt_func.u_isxdigit) { 18 return g_icu_opt_func.u_isxdigit(c); 19 } 20 } 21 #endif 22 return isxdigit(c); 23 } 24 25 weak_alias(__isxdigit_l, isxdigit_l); 26