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