1 /* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */
6 #include "categories.h"
9 iswupper_l (wint_t c
, struct __locale_t
*locale
)
12 c
= _jp2uc_l (c
, locale
);
13 // The wide-character class "upper" contains at least those characters wc
14 // which are equal to towupper(wc) and different from towlower(wc).
15 enum category cat
= category (c
);
16 return cat
== CAT_Lu
|| (cat
== CAT_LC
&& towupper (c
) == c
);
18 return c
< 0x100 ? isupper (c
) : 0;
19 #endif /* _MB_CAPABLE */