blob: f0b9ea0a4bfc4fc1e7161e5f19596f5bfd011494 [file] [log] [blame]
#include <wctype.h>
static const unsigned char table[] = {
#include "punct.h"
};
int iswpunct(wint_t wc)
{
if (wc<0x20000U)
return (table[table[wc>>8]*32+((wc&255)>>3)]>>(wc&7))&1;
return 0;
}
int __iswpunct_l(wint_t c, locale_t l)
{
return iswpunct(c);
}
weak_alias(__iswpunct_l, iswpunct_l);