mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
LibC: Primitively implement wcscoll
At the moment, sorting like LC_COLLATE=C would do is better than nothing.
This commit is contained in:
parent
8043fcd466
commit
b8c756a53a
Notes:
sideshowbarker
2024-07-18 03:44:24 +09:00
Author: https://github.com/timschumi
Commit: b8c756a53a
Pull-request: https://github.com/SerenityOS/serenity/pull/10077
3 changed files with 50 additions and 3 deletions
|
@ -317,10 +317,11 @@ size_t wcrtomb(char*, wchar_t, mbstate_t*)
|
|||
TODO();
|
||||
}
|
||||
|
||||
int wcscoll(const wchar_t*, const wchar_t*)
|
||||
int wcscoll(const wchar_t* ws1, const wchar_t* ws2)
|
||||
{
|
||||
dbgln("FIXME: Implement wcscoll()");
|
||||
TODO();
|
||||
// TODO: Actually implement a sensible sort order for this,
|
||||
// because right now we are doing what LC_COLLATE=C would do.
|
||||
return wcscmp(ws1, ws2);
|
||||
}
|
||||
|
||||
int wctob(wint_t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue