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

Method FormatSigned

ext/include/cppformat/format.h:2238–2246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2236 }
2237
2238 void FormatSigned(LongLong value) {
2239 ULongLong abs_value = static_cast<ULongLong>(value);
2240 bool negative = value < 0;
2241 if (negative)
2242 abs_value = 0 - abs_value;
2243 str_ = format_decimal(abs_value);
2244 if (negative)
2245 *--str_ = '-';
2246 }
2247
2248 public:
2249 explicit FormatInt(int value) { FormatSigned(value); }

Callers

nothing calls this directly

Calls 1

format_decimalFunction · 0.70

Tested by

no test coverage detected