mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:57:35 +00:00
LibC: Implement towctrans
This commit is contained in:
parent
8c7b566629
commit
42031f026a
2 changed files with 28 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue