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

Function check_sign

ext/src/cppformat/format.cc:228–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226
227template <typename Char>
228void check_sign(const Char *&s, const Arg &arg) {
229 char sign = static_cast<char>(*s);
230 require_numeric_argument(arg, sign);
231 if (arg.type == Arg::UINT || arg.type == Arg::ULONG_LONG) {
232 FMT_THROW(fmt::FormatError(fmt::format(
233 "format specifier '{}' requires signed argument", sign)));
234 }
235 ++s;
236}
237
238// Checks if an argument is a valid printf width specifier and sets
239// left alignment if it is negative.

Callers 1

formatMethod · 0.85

Calls 3

require_numeric_argumentFunction · 0.85
FormatErrorClass · 0.85
formatFunction · 0.50

Tested by

no test coverage detected