mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:47:46 +00:00
AK+Format: Do some housekeeping in the format implementation.
This commit is contained in:
parent
ac5e08a541
commit
6351a56d27
13 changed files with 476 additions and 640 deletions
|
@ -239,13 +239,12 @@ public:
|
|||
|
||||
static String format(const char*, ...);
|
||||
|
||||
static String vformatted(StringView fmtstr, Span<const TypeErasedParameter>);
|
||||
static String vformatted(StringView fmtstr, TypeErasedFormatParams);
|
||||
|
||||
template<typename... Parameters>
|
||||
static String formatted(StringView fmtstr, const Parameters&... parameters)
|
||||
{
|
||||
const auto type_erased_parameters = make_type_erased_parameters(parameters...);
|
||||
return vformatted(fmtstr, type_erased_parameters);
|
||||
return vformatted(fmtstr, VariadicFormatParams { parameters... });
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue