Sha256: c00a00ff34f140777d86836fca6e2268ac04a2a2a0a3541daba19b6ab59c7de7
Contents?: true
Size: 359 Bytes
Versions: 8
Compression:
Stored size: 359 Bytes
Contents
#include <wctype.h> #include <string.h> wctrans_t wctrans(const char *class) { if (!strcmp(class, "toupper")) return (wctrans_t)1; if (!strcmp(class, "tolower")) return (wctrans_t)2; return 0; } wint_t towctrans(wint_t wc, wctrans_t trans) { if (trans == (wctrans_t)1) return towupper(wc); if (trans == (wctrans_t)2) return towlower(wc); return wc; }
Version data entries
8 entries across 8 versions & 1 rubygems