client/Response: add method Fmt() based on libfmt

This commit is contained in:
Max Kellermann
2021-05-21 20:35:29 +02:00
parent a9c704b76e
commit 0440c41cba
27 changed files with 241 additions and 195 deletions

View File

@@ -39,6 +39,8 @@
#include "util/StringAPI.hxx"
#include "util/NumberParser.hxx"
#include <fmt/format.h>
#include <limits>
static void
@@ -127,7 +129,7 @@ handle_addid(Client &client, Request args, Response &r)
}
}
r.Format("Id: %u\n", added_id);
r.Fmt(FMT_STRING("Id: {}\n"), added_id);
return CommandResult::OK;
}