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

Method writeDigit

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

Source from the content-addressed store, hash-verified

186 [[nodiscard]] static char* write (char* dest, char c) { *dest = c; return dest + 1; }
187 template <typename... Chars> static char* write (char* dest, char first, Chars... others) { return write (write (dest, first), others...); }
188 [[nodiscard]] static char* writeDigit (char* dest, int digit) { return write (dest, static_cast<char> (digit + '0')); }
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); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected