From 14b9689b6d4f4ad5276c88130dc6e449bedc0709 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 27 Jun 2023 19:24:35 +1000 Subject: Change formatting to use fmtlib (STILL NEED TO CHANGE TO FMT SYNTAX!) --- source/core/StarStringView.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/core/StarStringView.cpp') diff --git a/source/core/StarStringView.cpp b/source/core/StarStringView.cpp index d1c9ae3..7580bf6 100644 --- a/source/core/StarStringView.cpp +++ b/source/core/StarStringView.cpp @@ -430,4 +430,8 @@ std::ostream& operator<<(std::ostream& os, StringView const& s) { return os; } -} \ No newline at end of file +} + +fmt::v10::appender fmt::formatter::format(Star::StringView const& s, format_context& ctx) const { + return formatter::format(s.utf8(), ctx); +}; \ No newline at end of file -- cgit v1.2.3