mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:37:45 +00:00
AK: Add StringBuilder::appendff using the new format.
StringBuilder::appendf was already used, thus this name. If we some day replace all usages of printf, we could rename this method.
This commit is contained in:
parent
4fcdc19b14
commit
e5497a326a
3 changed files with 12 additions and 4 deletions
|
@ -100,4 +100,7 @@ String format(StringView fmtstr, const Parameters&... parameters)
|
|||
return Detail::Format::format(fmtstr, formatters);
|
||||
}
|
||||
|
||||
}
|
||||
template<typename... Parameters>
|
||||
void StringBuilder::appendff(StringView fmtstr, const Parameters&... parameters) { AK::format(*this, fmtstr, parameters...); }
|
||||
|
||||
} // namespace AK
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue