| 1423 | |
| 1424 | template <typename Char> |
| 1425 | FMT_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 | |
| 1440 | enum class state { start, align, sign, hash, zero, width, precision, locale }; |
| 1441 |
no test coverage detected