mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +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
Notes:
sideshowbarker
2024-07-19 02:17:10 +09:00
Author: https://github.com/asynts
Commit: e5497a326a
Pull-request: https://github.com/SerenityOS/serenity/pull/3580
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