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:
asynts 2020-09-22 13:11:05 +02:00 committed by Andreas Kling
commit e5497a326a
Notes: sideshowbarker 2024-07-19 02:17:10 +09:00
3 changed files with 12 additions and 4 deletions

View file

@ -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