1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:07:45 +00:00

LibC: Implement towctrans

This commit is contained in:
Tim Schumacher 2021-09-17 18:30:25 +02:00 committed by Brian Gianforcaro
parent 8c7b566629
commit 42031f026a
2 changed files with 28 additions and 3 deletions

View file

@ -187,10 +187,18 @@ wint_t towupper(wint_t wc)
return __inline_toupper(wc);
}
wint_t towctrans(wint_t, wctrans_t)
wint_t towctrans(wint_t wc, wctrans_t desc)
{
dbgln("FIXME: Implement towctrans()");
TODO();
switch (desc) {
case WCTRANS_TOLOWER:
return towlower(wc);
case WCTRANS_TOUPPER:
return towupper(wc);
default:
return wc;
}
}
wctrans_t wctrans(const char* charclass)