32 struct fmt::formatter<QString> {
34 constexpr
auto parse(format_parse_context& ctx) -> decltype(ctx.begin()) {
39 template <
typename FormatContext>
40 auto format(
const QString& qstr, FormatContext& ctx)
const
41 -> decltype(ctx.out()) {
44 QByteArray utf8_array = qstr.toUtf8();
45 return fmt::format_to(ctx.out(),
"{}", utf8_array.constData());
50 struct fmt::formatter<QByteArray> {
52 constexpr
auto parse(format_parse_context& ctx) -> decltype(ctx.begin()) {
57 template <
typename FormatContext>
58 auto format(
const QByteArray& qarray, FormatContext& ctx)
const
59 -> decltype(ctx.out()) {
62 return fmt::format_to(ctx.out(),
"{}", qarray.constData());