MCPcopy Create free account
hub / github.com/Tracktion/choc / writeExponent

Method writeExponent

choc/text/choc_FloatToString.h:191–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189 template <typename... Chars> static char* writeDigit (char* dest, int d, Chars... others) { return writeDigit (writeDigit (dest, d), others...); }
190 [[nodiscard]] static char* writeZero (char* dest) { return write (dest, '0', '.', '0'); }
191 [[nodiscard]] static char* writeExponent (char* dest, int e) { return writeShortInteger (write (dest, 'e'), e); }
192 static void writeDigitIfNotLeadingZero (char* dest, uint32_t& length, uint32_t digit) { if (digit != 0 || length != 0) dest[length++] = static_cast<char> (digit + '0'); }
193
194 [[nodiscard]] static char* writeShortInteger (char* dest, int n)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected