MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / format_signed

Method format_signed

extlibs/fmt/include/fmt/format.h:2883–2889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2881 }
2882
2883 void format_signed(long long value) {
2884 auto abs_value = static_cast<unsigned long long>(value);
2885 bool negative = value < 0;
2886 if (negative) abs_value = 0 - abs_value;
2887 str_ = format_decimal(abs_value);
2888 if (negative) *--str_ = '-';
2889 }
2890
2891 public:
2892 explicit format_int(int value) { format_signed(value); }

Callers

nothing calls this directly

Calls 1

format_decimalFunction · 0.85

Tested by

no test coverage detected