MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / parse

Method parse

external/fmt/include/fmt/format.h:3960–3974  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3958 constexpr nested_formatter() : width_(0) {}
3959
3960 FMT_CONSTEXPR auto parse(parse_context<Char>& ctx) -> const Char* {
3961 auto it = ctx.begin(), end = ctx.end();
3962 if (it == end) return it;
3963 auto specs = format_specs();
3964 it = detail::parse_align(it, end, specs);
3965 specs_ = specs;
3966 Char c = *it;
3967 auto width_ref = detail::arg_ref<Char>();
3968 if ((c >= '0' && c <= '9') || c == '{') {
3969 it = detail::parse_width(it, end, specs, width_ref, ctx);
3970 width_ = specs.width;
3971 }
3972 ctx.advance_to(it);
3973 return formatter_.parse(ctx);
3974 }
3975
3976 template <typename FormatContext, typename F>
3977 auto write_padded(FormatContext& ctx, F write) const -> decltype(ctx.out()) {

Callers

nothing calls this directly

Calls 7

format_specsClass · 0.85
parse_alignFunction · 0.85
parse_widthFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
advance_toMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected