1 /* wctrans( const char * )
3 This file is part of the Public Domain C Library (PDCLib).
4 Permission is granted to use, modify, and / or redistribute at will.
10 #include "_PDCLIB_locale.h"
12 wctrans_t wctrans( const char * property )
16 } else if(strcmp(property, "tolower") == 0) {
17 return _PDCLIB_WCTRANS_TOLOWER;
18 } else if(strcmp(property, "toupper") == 0) {
19 return _PDCLIB_WCTRANS_TOUPPER;
28 #include "_PDCLIB_test.h"
32 TESTCASE(wctrans("") == 0);
33 TESTCASE(wctrans("invalid") == 0);
34 TESTCASE(wctrans("toupper") != 0);
35 TESTCASE(wctrans("tolower") != 0);