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

Version Path
webruby-0.2.7 modules/emscripten/system/lib/libc/musl/src/ctype/wctrans.c
webruby-0.2.5 modules/emscripten/system/lib/libc/musl/src/ctype/wctrans.c
webruby-0.2.4 modules/emscripten/system/lib/libc/musl/src/ctype/wctrans.c
webruby-0.2.2 modules/emscripten/system/lib/libc/musl/src/ctype/wctrans.c
webruby-0.2.1 modules/emscripten/system/lib/libc/musl/src/ctype/wctrans.c
webruby-0.1.2 modules/emscripten/system/lib/libc/musl/src/ctype/wctrans.c
webruby-0.1.1 modules/emscripten/system/lib/libc/musl/src/ctype/wctrans.c
webruby-0.1.0 modules/emscripten/system/lib/libc/musl/src/ctype/wctrans.c