3 This file is part of the Public Domain C Library (PDCLib).
4 Permission is granted to use, modify, and / or redistribute at will.
9 #include "_PDCLIB_locale.h"
11 wint_t _PDCLIB_towupper_l( wint_t wc, locale_t l )
13 wint_t uwc = _PDCLIB_unpackwint( wc );
14 _PDCLIB_wcinfo_t *info = _PDCLIB_wcgetinfo( l, uwc );
17 uwc += info->upper_delta;
22 wint_t towupper( wint_t wc )
24 return _PDCLIB_towupper_l( wc, _PDCLIB_threadlocale() );
30 #include "_PDCLIB_test.h"
34 TESTCASE(towupper(0) == 0);
35 TESTCASE(towupper(L'a') == L'A');
36 TESTCASE(towupper(L'B') == L'B');
37 TESTCASE(towupper(L'0') == L'0');