version 1.1, 2015/03/17 17:45:13 |
version 1.2, 2015/04/01 21:46:38 |
|
|
static inline bool |
static inline bool |
isdigit_clocale(wchar_t c) |
isdigit_clocale(wchar_t c) |
{ |
{ |
|
|
return (c >= L'0' && c <= L'9'); |
return (c >= L'0' && c <= L'9'); |
} |
} |
|
|
static inline bool |
static inline bool |
isalpha_clocale(wchar_t c) |
isalpha_clocale(wchar_t c) |
{ |
{ |
|
|
return ((c >= L'a' && c <= L'z') || (c >= L'A' && c <= L'Z')); |
return ((c >= L'a' && c <= L'z') || (c >= L'A' && c <= L'Z')); |
} |
} |
|
|
static inline bool |
static inline bool |
isalnum_clocale(wchar_t c) |
isalnum_clocale(wchar_t c) |
{ |
{ |
|
|
return ((c >= L'a' && c <= L'z') || (c >= L'A' && c <= L'Z') || |
return ((c >= L'a' && c <= L'z') || (c >= L'A' && c <= L'Z') || |
(c >= L'0' && c <= L'9')); |
(c >= L'0' && c <= L'9')); |
} |
} |
|
|
static inline int |
static inline int |
cmp_chars(wchar_t c1, wchar_t c2) |
cmp_chars(wchar_t c1, wchar_t c2) |
{ |
{ |
|
|
if (c1 == c2) |
if (c1 == c2) |
return 0; |
return 0; |
|
|