]> pd.if.org Git - pdclib.old/blobdiff - functions/wctype/towlower.c
Compress the Unicode data into runs. This results in a significant size reduction.
[pdclib.old] / functions / wctype / towlower.c
index d8d56ece19bfde330b58140de489402a4cdaef3a..b3def775b75b101992fc75752df8959c675e2b0e 100644 (file)
@@ -12,11 +12,11 @@ wint_t _PDCLIB_towlower_l( wint_t wc, locale_t l )
 {\r
     wint_t uwc = _PDCLIB_unpackwint( wc );\r
     _PDCLIB_wcinfo_t *info = _PDCLIB_wcgetinfo( l, uwc );\r
-    if( info && info->lower != uwc \r
+    if( info ) \r
     {\r
-        wc = info->lower;\r
+        uwc += info->lower_delta;\r
     }\r
-    return wc;\r
+    return uwc;\r
 }\r
 \r
 wint_t towlower( wint_t wc )\r