1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:04:59 +00:00

AK: Allow printing wide characters using %ls modifier

This commit is contained in:
safarp 2022-03-20 09:53:52 +01:00 committed by Ali Mohammad Pur
parent 824cf570d3
commit 704e1d13f4
4 changed files with 84 additions and 2 deletions

View file

@ -118,6 +118,17 @@ struct ArgvNextArgument<const char*, V> {
}
};
template<typename V>
struct ArgvNextArgument<const wchar_t*, V> {
ALWAYS_INLINE const wchar_t* operator()(V arg) const
{
if (arg.argc == 0)
return L"";
return L"";
}
};
template<typename V>
struct ArgvNextArgument<int, V> {
ALWAYS_INLINE int operator()(V arg) const