Add locale getter in tm_writer

This commit is contained in:
Stepan Ponomarev 2022-10-19 16:13:07 +03:00
parent 8c19bf3f2f
commit 898a27f4e0

View File

@ -1263,6 +1263,8 @@ class tm_writer {
OutputIt out() const { return out_; } OutputIt out() const { return out_; }
const std::locale & locale() const { return loc_; }
FMT_CONSTEXPR void on_text(const Char* begin, const Char* end) { FMT_CONSTEXPR void on_text(const Char* begin, const Char* end) {
out_ = copy_str<Char>(begin, end, out_); out_ = copy_str<Char>(begin, end, out_);
} }