MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / on_text

Method on_text

extlibs/fmt/include/fmt/format.h:3151–3157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3149 : parse_context(str), context(r.begin(), format_args, loc) {}
3150
3151 void on_text(const Char* begin, const Char* end) {
3152 auto size = internal::to_unsigned(end - begin);
3153 auto out = context.out();
3154 auto&& it = internal::reserve(out, size);
3155 it = std::copy_n(begin, size, it);
3156 context.advance_to(out);
3157 }
3158
3159 void get_arg(int id) { arg = internal::get_arg(context, id); }
3160

Callers 2

operator()Method · 0.45
parse_format_stringFunction · 0.45

Calls 3

reserveFunction · 0.70
outMethod · 0.45
advance_toMethod · 0.45

Tested by

no test coverage detected