-/* towlower( wint_t )\r
-\r
- This file is part of the Public Domain C Library (PDCLib).\r
- Permission is granted to use, modify, and / or redistribute at will.\r
-*/\r
-\r
-#include <wctype.h>\r
-#ifndef REGTEST\r
-#include "_PDCLIB_locale.h"\r
-\r
-wint_t _PDCLIB_towlower_l( wint_t wc, locale_t l )\r
-{\r
- wint_t uwc = _PDCLIB_unpackwint( wc );\r
- _PDCLIB_wcinfo_t *info = _PDCLIB_wcgetinfo( l, uwc );\r
- if( info ) \r
- {\r
- uwc += info->lower_delta;\r
- }\r
- return uwc;\r
-}\r
-\r
-wint_t towlower( wint_t wc )\r
-{\r
- return _PDCLIB_towlower_l( wc, _PDCLIB_threadlocale() );\r
-}\r
-\r
-#endif\r
-\r
-#ifdef TEST\r
-#include "_PDCLIB_test.h"\r
-\r
-int main( void )\r
-{\r
- TESTCASE(towlower(0) == 0);\r
- TESTCASE(towlower(L'a') == L'a');\r
- TESTCASE(towlower(L'B') == L'b');\r
- TESTCASE(towlower(L'0') == L'0');\r
-\r
- return TEST_RESULTS;\r
-}\r
-#endif\r
+/* towlower( wint_t )
+
+ This file is part of the Public Domain C Library (PDCLib).
+ Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+#include <wctype.h>
+#ifndef REGTEST
+#include "_PDCLIB_locale.h"
+
+wint_t _PDCLIB_towlower_l( wint_t wc, locale_t l )
+{
+ wint_t uwc = _PDCLIB_unpackwint( wc );
+ _PDCLIB_wcinfo_t *info = _PDCLIB_wcgetinfo( l, uwc );
+ if( info )
+ {
+ uwc += info->lower_delta;
+ }
+ return uwc;
+}
+
+wint_t towlower( wint_t wc )
+{
+ return _PDCLIB_towlower_l( wc, _PDCLIB_threadlocale() );
+}
+
+#endif
+
+#ifdef TEST
+#include "_PDCLIB_test.h"
+
+int main( void )
+{
+ TESTCASE(towlower(0) == 0);
+ TESTCASE(towlower(L'a') == L'a');
+ TESTCASE(towlower(L'B') == L'b');
+ TESTCASE(towlower(L'0') == L'0');
+
+ return TEST_RESULTS;
+}
+#endif