Sign in
fuchsia
/
zircon
/
/
13ee3dc5e4c46bf127977ad28645c47442ec517d
/
.
/
third_party
/
ulib
/
musl
/
src
/
ctype
/
iswalpha.c
blob: fba0fa527e169df3a193ab5acf669c492074d4bc [
file
] [
log
] [
blame
]
#include
<wctype.h>
static
const
unsigned
char
table
[]
=
{
#include
"alpha.h"
};
int
iswalpha
(
wint_t
wc
)
{
if
(
wc
<
0x20000U
)
return
(
table
[
table
[
wc
>>
8
]
*
32
+
((
wc
&
255
)
>>
3
)]
>>
(
wc
&
7
))
&
1
;
if
(
wc
<
0x2fffeU
)
return
1
;
return
0
;
}