mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
AK: Add outf, warnf and dbgf.
This commit is contained in:
parent
b7a4c4482f
commit
5ed15a49f2
Notes:
sideshowbarker
2024-07-19 02:15:44 +09:00
Author: https://github.com/asynts
Commit: 5ed15a49f2
Pull-request: https://github.com/SerenityOS/serenity/pull/3587
3 changed files with 33 additions and 0 deletions
|
@ -142,6 +142,12 @@ void vformat(StringBuilder& builder, StringView fmtstr, AK::Span<const TypeErase
|
|||
|
||||
vformat(builder, fmtstr.substring_view(closing + 1), parameters, argument_index);
|
||||
}
|
||||
void vformat(const LogStream& stream, StringView fmtstr, Span<const TypeErasedParameter> parameters)
|
||||
{
|
||||
StringBuilder builder;
|
||||
vformat(builder, fmtstr, parameters);
|
||||
stream << builder.to_string();
|
||||
}
|
||||
|
||||
bool Formatter<StringView>::parse(StringView flags)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue