mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:47:35 +00:00
AK+Format: Make it possible to format characters as integers.
This commit is contained in:
parent
2217d6b560
commit
d546d31a53
2 changed files with 13 additions and 6 deletions
|
@ -295,13 +295,9 @@ struct Formatter<T*> : StandardFormatter {
|
|||
};
|
||||
|
||||
template<>
|
||||
struct Formatter<char> : Formatter<StringView> {
|
||||
void format(TypeErasedFormatParams& params, FormatBuilder& builder, char value)
|
||||
{
|
||||
Formatter<StringView>::format(params, builder, { &value, 1 });
|
||||
}
|
||||
struct Formatter<char> : StandardFormatter {
|
||||
void format(TypeErasedFormatParams&, FormatBuilder&, char value);
|
||||
};
|
||||
|
||||
template<>
|
||||
struct Formatter<bool> : StandardFormatter {
|
||||
void format(TypeErasedFormatParams&, FormatBuilder&, bool value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue