mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 11:14:41 +00:00
Simplify on_text
This commit is contained in:
parent
439b6d7212
commit
bdc45eef76
@ -4237,8 +4237,7 @@ void vformat_to(buffer<Char>& buf, basic_string_view<Char> fmt,
|
||||
: parse_context(str), context(p_out, p_args, p_loc) {}
|
||||
|
||||
void on_text(const Char* begin, const Char* end) {
|
||||
auto text = basic_string_view<Char>(begin, to_unsigned(end - begin));
|
||||
context.advance_to(write<Char>(context.out(), text));
|
||||
context.advance_to(copy_noinline<Char>(begin, end, context.out()));
|
||||
}
|
||||
|
||||
FMT_CONSTEXPR auto on_arg_id() -> int {
|
||||
|
Loading…
Reference in New Issue
Block a user