mirror of
https://github.com/fmtlib/fmt.git
synced 2025-02-03 20:54:08 +00:00
Add locale getter in tm_writer (#3147)
* Add locale getter in tm_writer * Apply clang-format Co-authored-by: Stepan Ponomarev <stepan.ponomarev@itiviti.com>
This commit is contained in:
parent
e1ffa7655d
commit
64965bdc96
@ -1264,6 +1264,8 @@ class tm_writer {
|
||||
|
||||
OutputIt out() const { return out_; }
|
||||
|
||||
const std::locale& locale() const { return loc_; }
|
||||
|
||||
FMT_CONSTEXPR void on_text(const Char* begin, const Char* end) {
|
||||
out_ = copy_str<Char>(begin, end, out_);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user