MCPcopy Create free account
hub / github.com/fmtlib/fmt / parse_specs

Function parse_specs

include/fmt/compile.h:298–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296
297template <typename T, typename Char>
298constexpr auto parse_specs(basic_string_view<Char> str, size_t pos,
299 int next_arg_id) -> parse_specs_result<T, Char> {
300 str.remove_prefix(pos);
301 auto ctx =
302 compile_parse_context<Char>(str, max_value<int>(), nullptr, next_arg_id);
303 auto f = formatter<T, Char>();
304 auto end = f.parse(ctx);
305 return {f, pos + fmt::detail::to_unsigned(end - str.data()),
306 next_arg_id == 0 ? manual_indexing_id : ctx.next_arg_id()};
307}
308
309template <typename Char> struct arg_id_handler {
310 arg_id_kind kind;

Callers

nothing calls this directly

Calls 4

to_unsignedFunction · 0.85
parseMethod · 0.45
dataMethod · 0.45
next_arg_idMethod · 0.45

Tested by

no test coverage detected