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

Function parse_width

extlibs/fmt/include/fmt/format.h:2456–2470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2454
2455template <typename Char, typename Handler>
2456FMT_CONSTEXPR const Char* parse_width(const Char* begin, const Char* end,
2457 Handler&& handler) {
2458 FMT_ASSERT(begin != end, "");
2459 if ('0' <= *begin && *begin <= '9') {
2460 handler.on_width(parse_nonnegative_int(begin, end, handler));
2461 } else if (*begin == '{') {
2462 ++begin;
2463 if (begin != end)
2464 begin = parse_arg_id(begin, end, width_adapter<Handler, Char>(handler));
2465 if (begin == end || *begin != '}')
2466 return handler.on_error("invalid format string"), begin;
2467 ++begin;
2468 }
2469 return begin;
2470}
2471
2472template <typename Char, typename Handler>
2473FMT_CONSTEXPR const Char* parse_precision(const Char* begin, const Char* end,

Callers 2

do_parseMethod · 0.85
parse_format_specsFunction · 0.85

Calls 4

parse_nonnegative_intFunction · 0.85
parse_arg_idFunction · 0.85
on_widthMethod · 0.45
on_errorMethod · 0.45

Tested by

no test coverage detected