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

Function parse_precision

include/fmt/base.h:1425–1438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1423
1424template <typename Char>
1425FMT_CONSTEXPR auto parse_precision(const Char* begin, const Char* end,
1426 format_specs& specs,
1427 arg_ref<Char>& precision_ref,
1428 parse_context<Char>& ctx) -> const Char* {
1429 ++begin;
1430 if (begin == end) {
1431 report_error("invalid precision");
1432 return begin;
1433 }
1434 auto result =
1435 parse_dynamic_spec(begin, end, specs.precision, precision_ref, ctx);
1436 specs.set_dynamic_precision(result.kind);
1437 return result.end;
1438}
1439
1440enum class state { start, align, sign, hash, zero, width, precision, locale };
1441

Callers 2

parseMethod · 0.85
parse_format_specsFunction · 0.85

Calls 3

report_errorFunction · 0.85
parse_dynamic_specFunction · 0.85
set_dynamic_precisionMethod · 0.80

Tested by

no test coverage detected