| 610 | |
| 611 | template <typename Char> |
| 612 | inline Arg fmt::BasicFormatter<Char>::parse_arg_index(const Char *&s) { |
| 613 | const char *error = 0; |
| 614 | Arg arg = *s < '0' || *s > '9' ? |
| 615 | next_arg(error) : get_arg(parse_nonnegative_int(s), error); |
| 616 | if (error) { |
| 617 | FMT_THROW(FormatError( |
| 618 | *s != '}' && *s != ':' ? "invalid format string" : error)); |
| 619 | } |
| 620 | return arg; |
| 621 | } |
| 622 | |
| 623 | Arg fmt::internal::FormatterBase::do_get_arg( |
| 624 | unsigned arg_index, const char *&error) { |
nothing calls this directly
no test coverage detected