MCPcopy Create free account
hub / github.com/ablab/spades / parse_arg_index

Method parse_arg_index

ext/src/cppformat/format.cc:612–621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610
611template <typename Char>
612inline 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
623Arg fmt::internal::FormatterBase::do_get_arg(
624 unsigned arg_index, const char *&error) {

Callers

nothing calls this directly

Calls 2

parse_nonnegative_intFunction · 0.85
FormatErrorClass · 0.85

Tested by

no test coverage detected