mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:14:58 +00:00
AK: Remove custom %w format string specifier
This was a non-standard specifier alias for %04x. This patch replaces all uses of it with new-style formatting functions instead.
This commit is contained in:
parent
cb2c8f71f4
commit
ed5c26d698
7 changed files with 45 additions and 20 deletions
|
@ -386,10 +386,6 @@ struct PrintfImpl {
|
|||
m_putch(m_bufptr, '%');
|
||||
return 1;
|
||||
}
|
||||
ALWAYS_INLINE int format_w(const ModifierState& state, ArgumentListRefT ap) const
|
||||
{
|
||||
return print_hex(m_putch, m_bufptr, NextArgument<int>()(ap), false, state.alternate_form, false, true, 4);
|
||||
}
|
||||
ALWAYS_INLINE int format_c(const ModifierState& state, ArgumentListRefT ap) const
|
||||
{
|
||||
char c = NextArgument<int>()(ap);
|
||||
|
@ -511,7 +507,6 @@ ALWAYS_INLINE int printf_internal(PutChFunc putch, char* buffer, const char*& fm
|
|||
PRINTF_IMPL_DELEGATE_TO_IMPL(q);
|
||||
PRINTF_IMPL_DELEGATE_TO_IMPL(s);
|
||||
PRINTF_IMPL_DELEGATE_TO_IMPL(u);
|
||||
PRINTF_IMPL_DELEGATE_TO_IMPL(w);
|
||||
PRINTF_IMPL_DELEGATE_TO_IMPL(x);
|
||||
default:
|
||||
ret += impl.format_unrecognized(*p, fmt, state, ap);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue