1
Fork 0
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:
asynts 2020-09-22 13:11:05 +02:00 committed by Andreas Kling
parent 4fcdc19b14
commit e5497a326a
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